This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
multiple.yml
87 lines (82 loc) · 2.15 KB
/
multiple.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.7'
networks:
srcds:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_icc: 0
services:
css:
image: ghcr.io/thetredev/steamcmd:css-latest
container_name: css
restart: unless-stopped
stdin_open: true
tty: true
environment:
TIME_ZONE: Europe/Berlin
STEAMCMD_UID: 1000
STEAMCMD_GID: 5000
STEAMCMD_SERVER_APPID: 232330
STEAMCMD_SERVER_GAME: cstrike
STEAMCMD_SERVER_MAP: de_dust2
STEAMCMD_SERVER_TICKRATE: 67
STEAMCMD_SERVER_MAXPLAYERS: 32
STEAMCMD_SERVER_SESSION_NAME: css
ports:
- "27015:27015/udp"
# enable the TCP one for RCON
#- "27015:27015/tcp"
volumes:
# game server files
- ./css:/var/lib/steamcmd/server
# shared tmux socket directory:
#- /tmp/steamcmd:/tmp/steamcmd
networks:
- srcds
security_opt:
- no-new-privileges
tmpfs:
- /tmp
ulimits:
nofile:
soft: 2048
hard: 2048
cs2:
image: ghcr.io/thetredev/steamcmd:source2-latest
container_name: cs2
restart: unless-stopped
stdin_open: true
tty: true
environment:
TIME_ZONE: Europe/Berlin
STEAMCMD_UID: 1000
STEAMCMD_GID: 5000
STEAMCMD_SERVER_APPID: 730
STEAMCMD_SERVER_GAME: cs2
STEAMCMD_SERVER_MAP: de_dust2
STEAMCMD_SERVER_MAXPLAYERS: 32
STEAMCMD_SERVER_SESSION_NAME: cs2
# To run multiple game servers as compose services,
# the container port must be set to the one you want exposed.
# So, if 'css' is exposed at port 27015, then 'source2' must be exposed
# on any other port than 27015, preferably in the 27000-27999 range.
# We'll use 27016 for this one:
STEAMCMD_SERVER_PORT: 27016
ports:
- "27016:27016/udp"
# enable the TCP one for RCON
#- "27016:27016/tcp"
volumes:
# game server files
- ./source2:/var/lib/steamcmd/server
# shared tmux socket directory:
#- /tmp/steamcmd:/tmp/steamcmd
networks:
- srcds
security_opt:
- no-new-privileges
tmpfs:
- /tmp
ulimits:
nofile:
soft: 2048
hard: 2048