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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose: Add docker-compose.multiple.yml
Signed-off-by: Timo Reichl <[email protected]>
- Loading branch information
Timo Reichl
committed
Jun 3, 2022
1 parent
2155013
commit 5881ed2
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
version: '3.7' | ||
|
||
services: | ||
css: | ||
image: ghcr.io/thetredev/steamcmd:css-latest | ||
container_name: css | ||
stdin_open: true | ||
tty: true | ||
environment: | ||
TIME_ZONE: Europe/Berlin | ||
STEAMCMD_UID: 1000 | ||
STEAMCMD_GID: 5000 | ||
ports: | ||
- "27015:27015/udp" | ||
# enable the TCP one for RCON | ||
#- "27015:27015/tcp" | ||
volumes: | ||
- ./css:/var/lib/steamcmd/server | ||
ulimits: | ||
nofile: | ||
soft: 2048 | ||
hard: 2048 | ||
|
||
csgo: | ||
image: ghcr.io/thetredev/steamcmd:csgo-latest | ||
container_name: csgo | ||
stdin_open: true | ||
tty: true | ||
environment: | ||
TIME_ZONE: Europe/Berlin | ||
STEAMCMD_UID: 1000 | ||
STEAMCMD_GID: 5000 | ||
|
||
# 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 'csgo' 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: | ||
- ./csgo:/var/lib/steamcmd/server | ||
ulimits: | ||
nofile: | ||
soft: 2048 | ||
hard: 2048 |