Updated documentation to recomment published ports and remove references to SteamCMD authentication

This commit is contained in:
John Edwards 2023-11-07 12:08:31 +00:00
parent 8c540a4668
commit 3a0dab3244
2 changed files with 2 additions and 3 deletions

View file

@ -13,14 +13,14 @@ This Docker image contains the dedicated server of the game.
Running on the *host* interface (recommended) using Docker:<br/> Running on the *host* interface (recommended) using Docker:<br/>
```console ```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: Running using a bind mount for data persistence on container recreation:
```console ```console
$ mkdir -p $(pwd)/cs2-data $ mkdir -p $(pwd)/cs2-data
$ chmod 777 $(pwd)/cs2-data # Makes sure the directory is writeable by the unprivileged container user $ 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): or using docker-compose, see [examples](https://github.com/joedwards32/CS2/blob/main/examples/docker-compose.yml):

View file

@ -6,7 +6,6 @@ services:
environment: environment:
# Server configuration # Server configuration
- CS2_SERVERNAME=changeme # (Set the visible name for your private server) - 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_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_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) - CS2_LAN=0 # (0 - LAN mode disabled, 1 - LAN Mode enabled)