Skip to content

Commit 9802ea3

Browse files
authored
Merge pull request #64 from thejcpalma/main
Update README.md
2 parents 3692f81 + cd94666 commit 9802ea3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ This Docker image contains the dedicated server of the game.
1313

1414
Running using Docker:
1515
```console
16-
$ docker run -d --name=cs2 -p 27015:27015 -p 27020:27020 joedwards32/cs2
16+
$ docker run -d --name=cs2 -p 27015:27015/tcp -p 27015:27015/udp -p 27020:27020/tcp joedwards32/cs2
1717
```
1818

1919
Running using a bind mount for data persistence on container recreation:
2020
```console
2121
$ mkdir -p $(pwd)/cs2-data
2222
$ chmod 777 $(pwd)/cs2-data # Makes sure the directory is writeable by the unprivileged container user
23-
$ docker run -d --name=cs2 -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ -p 27015:27015 -p 27020:27020 joedwards32/cs2
23+
$ docker run -d --name=cs2 -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ -p 27015:27015/tcp -p 27015:27015/udp -p 27020:27020/tcp joedwards32/cs2
2424
```
2525

2626
or using docker-compose, see [examples](https://github.com/joedwards32/CS2/blob/main/examples/docker-compose.yml):
@@ -61,6 +61,8 @@ CS2_MAXPLAYERS=10 (Max players)
6161
CS2_ADDITIONAL_ARGS="" (Optional additional arguments to pass into cs2)
6262
```
6363

64+
**Note:** When using `CS2_RCON_PORT` don't forget to map the port chosen with TCP protocol (e.g., add `-p 27050:27050/tcp` on the `docker run` command or add the port to the `docker-compose.yml` file).
65+
6466
### Game Modes
6567

6668
```dockerfile

0 commit comments

Comments
 (0)