You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: README.md
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,21 +21,17 @@ For a list of available game servers visit [linuxgsm.com](https://linuxgsm.com)
21
21
22
22
### docker-compose
23
23
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).
25
25
26
26
```yaml
27
-
---
28
27
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
33
31
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
39
35
restart: unless-stopped
40
36
```
41
37
@@ -45,13 +41,13 @@ Alternatively, you can use the Docker CLI to run the container:
45
41
46
42
```bash
47
43
docker run -d \
48
-
--name csgoserver \
49
-
-v /path/to/csgoserver:/data \
44
+
--name cs2server \
45
+
-v /path/to/cs2server:/data \
50
46
-p 27015:27015 \
51
47
-p 27020:27020/udp \
52
48
-p 27005:27005/udp \
53
49
--restart unless-stopped \
54
-
gameservermanagers/gameserver:csgo
50
+
gameservermanagers/gameserver:cs2
55
51
```
56
52
57
53
### First Run
@@ -76,8 +72,8 @@ This container uses gosu to run gameservers as the `linuxgsm` user instead of ro
76
72
77
73
### Run LinuxGSM commands
78
74
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:
0 commit comments