Compare commits

...

3 Commits

Author SHA1 Message Date
Jose Jimenez
6b019e8fff Update README
Some checks failed
Build and Publish Docker Image / build-and-publish (push) Has been cancelled
Removed outdated notes and updated default map name.
2026-02-17 19:42:03 +01:00
311bbc8baf Point example to correct hub image 2026-02-17 19:32:41 +01:00
0200fb30e0 Make server not LAN 2026-02-17 19:19:58 +01:00
3 changed files with 5 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ You don't need to know anything about Linux or HLDS to start a server. You just
The latest image of this repo is available in docker hub [josejsalinas/hl-server](https://hub.docker.com/r/josejsalinas/hl-server) The latest image of this repo is available in docker hub [josejsalinas/hl-server](https://hub.docker.com/r/josejsalinas/hl-server)
```bash ```bash
docker run -d --name hl-server \ docker run -d --name halflife-server \
-p 27015:27015 \ -p 27015:27015 \
-p 27015:27015/udp \ -p 27015:27015/udp \
-e SERVER_NAME="My Crossfire Server" \ -e SERVER_NAME="My Crossfire Server" \
@@ -49,7 +49,7 @@ Or use docker compose with the hub image by creating a `docker-compose.yml`:
```yaml ```yaml
services: services:
halflife: halflife:
image: hl-server:latest image: josejsalinas/hl-server:latest
container_name: halflife-server container_name: halflife-server
restart: unless-stopped restart: unless-stopped
ports: ports:
@@ -124,7 +124,7 @@ WELCOME_MESSAGE=Welcome! 15-minute Crossfire rounds!
* Customizable via environment variables * Customizable via environment variables
## Default mapcycle - crossfire 24/7 ## Default mapcycle - crossfire 24/7
* crossfireS * crossfire
## Advanced ## Advanced
@@ -147,13 +147,6 @@ nano /opt/steam/hlds/valve/server.cfg
docker compose restart docker compose restart
``` ```
## Notes
- The server uses HLDS build 7882 for better compatibility with AMX Mod X
- Round duration is set to 15 minutes
- Only the Crossfire map is in rotation
- Server automatically restarts on crash
## License ## License
This configuration is provided as-is for running Half-Life dedicated servers. This configuration is provided as-is for running Half-Life dedicated servers.

View File

@@ -1,7 +1,7 @@
services: services:
halflife: halflife:
build: . build: .
image: hl-server:latest image: josejsalinas/hl-server:latest
container_name: halflife-server container_name: halflife-server
restart: unless-stopped restart: unless-stopped
ports: ports:

View File

@@ -29,5 +29,5 @@ cd /opt/steam/hlds
+maxplayers ${MAX_PLAYERS:-16} \ +maxplayers ${MAX_PLAYERS:-16} \
+map crossfire \ +map crossfire \
-port 27015 \ -port 27015 \
+sv_lan 1 \ +sv_lan 0 \
+exec server.cfg +exec server.cfg