Updated documentation to recomment published ports and remove references to SteamCMD authentication
This commit is contained in:
parent
8c540a4668
commit
3a0dab3244
2 changed files with 2 additions and 3 deletions
|
@ -13,14 +13,14 @@ This Docker image contains the dedicated server of the game.
|
|||
|
||||
Running on the *host* interface (recommended) using Docker:<br/>
|
||||
```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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue