diff --git a/README.md b/README.md index b78e88d..5335d01 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,14 @@ This Docker image contains the dedicated server of the game. Running on the *host* interface (recommended) using Docker:
```console -$ docker run -d --net=host --name=cs2 -e STEAMUSER={YOUR_STEAM_USER} -e STEAMPASS={YOUR_STEAM_PASSWD} joedwards32/cs2 +$ docker run -d --name=cs2 -p 27015:27015 -p 27020:27020 joedwards32/cs2 ``` Running using a bind mount for data persistence on container recreation: ```console $ mkdir -p $(pwd)/cs2-data $ chmod 777 $(pwd)/cs2-data # Makes sure the directory is writeable by the unprivileged container user -$ docker run -d --net=host -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ --name=cs2-dedicated -e STEAMUSER={YOUR_STEAM_USER} -e STEAMPASS={YOUR_STEAM_PASSWD} joedwards32/cs2 +$ docker run -d --name=cs2 -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ -p 27015:27015 -p 27020:27020 joedwards32/cs2 ``` or using docker-compose, see [examples](https://github.com/joedwards32/CS2/blob/main/examples/docker-compose.yml): diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml index 1e5cc0b..ab177af 100644 --- a/examples/docker-compose.yml +++ b/examples/docker-compose.yml @@ -6,7 +6,6 @@ services: environment: # Server configuration - CS2_SERVERNAME=changeme # (Set the visible name for your private server) - - CS2_IP=0.0.0.0 # (CS2 server listening IP address, 0.0.0.0 - all IP addresses on the local machine, empty - IP identified automatically) - CS2_PORT=27015 # (CS2 server listen port tcp_udp) - CS2_RCON_PORT # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.) - CS2_LAN=0 # (0 - LAN mode disabled, 1 - LAN Mode enabled)