Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
compose: Add docker-compose.multiple.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
Timo Reichl committed Jun 3, 2022
1 parent 2155013 commit 5881ed2
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Currently supported game server images:
| Counter-Strike: Source | `ghcr.io/thetredev/steamcmd:css-latest` |
| Counter-Strike: Global Offensive | `ghcr.io/thetredev/steamcmd:csgo-latest` |

See the `compose` directory for more details.
See the `compose` directory for more details. If you want to run multiple game servers using one single compose file, see the `compose/docker-compose.multiple.yml`.

## Image repository
The image repository is: `ghcr.io/thetredev/steamcmd`
Expand Down
50 changes: 50 additions & 0 deletions compose/docker-compose.multiple.yml
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

0 comments on commit 5881ed2

Please sign in to comment.