Skip to content

Commit a570476

Browse files
committed
feat(docker-compose): update configuration for cs2server
* Changed example docker-compose configuration from `csgoserver` to `cs2server`. * Updated container name and image references to `gameservermanagers/gameserver:cs2`. * Adjusted volume and network mode settings for the new server configuration.
1 parent 3845dd2 commit a570476

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,17 @@ For a list of available game servers visit [linuxgsm.com](https://linuxgsm.com)
2121

2222
### docker-compose
2323

24-
Here is an example docker-compose configuration for the "csgoserver" using the image `gameservermanagers/gameserver:csgo`. Please note that the ports may vary depending on the specific game server. More docker-compose examples are available [docker-compose examples](https://github.com/GameServerManagers/docker-gameserver/tree/main/docker-compose).
24+
Here is an example docker-compose configuration for the "cs2server" using the image `gameservermanagers/gameserver:cs2`. Please note that the ports may vary depending on the specific game server. More docker-compose examples are available [docker-compose examples](https://github.com/GameServerManagers/docker-gameserver/tree/main/docker-compose).
2525

2626
```yaml
27-
---
2827
services:
29-
linuxgsm:
30-
build:
31-
context: .
32-
dockerfile: dockerfiles/Dockerfile-cs2
28+
linuxgsm-cs2:
29+
image: ghcr.io/gameservermanagers/gameserver:cs2
30+
# image: gameservermanagers/gameserver:cs2
3331
container_name: cs2server
34-
ports:
35-
- "27015:27015/tcp"
36-
- "27015:27015/udp"
37-
- "27020:27020/udp"
38-
- "27005:27005/udp"
32+
volumes:
33+
- /path/to/cs2server:/data
34+
network_mode: host
3935
restart: unless-stopped
4036
```
4137
@@ -45,13 +41,13 @@ Alternatively, you can use the Docker CLI to run the container:
4541
4642
```bash
4743
docker run -d \
48-
--name csgoserver \
49-
-v /path/to/csgoserver:/data \
44+
--name cs2server \
45+
-v /path/to/cs2server:/data \
5046
-p 27015:27015 \
5147
-p 27020:27020/udp \
5248
-p 27005:27005/udp \
5349
--restart unless-stopped \
54-
gameservermanagers/gameserver:csgo
50+
gameservermanagers/gameserver:cs2
5551
```
5652

5753
### First Run
@@ -76,8 +72,8 @@ This container uses gosu to run gameservers as the `linuxgsm` user instead of ro
7672

7773
### Run LinuxGSM commands
7874

79-
You can execute LinuxGSM commands within the container using the docker exec command. Here's an example to run the `./csgoserver details` command as the `linuxgsm` user:
75+
You can execute LinuxGSM commands within the container using the docker exec command. Here's an example to run the `./cs2server details` command as the `linuxgsm` user:
8076

8177
```bash
82-
docker exec -it --user linuxgsm csgoserver ./csgoserver details
78+
docker exec -it --user linuxgsm cs2server ./cs2server details
8379
```

0 commit comments

Comments
 (0)