Skip to content

Commit

Permalink
Docs (examples): Assign separate port for srcds-csgo (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltimothyoh authored Mar 7, 2024
1 parent 4dd946c commit 4865c48
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ docker run -it --rm -p 27015:27015/tcp -p 27015:27015/udp --entrypoint /bin/bash

# Counter-Strike: Global Offensive
## Via default entrypoint (/bin/bash -c)
docker run -it --rm -p 27015:27015/tcp -p 27015:27015/udp sourceservers/csgo:latest 'srcds_linux -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2'
docker run -it --rm -p 27015:27015/tcp -p 27015:27015/udp sourceservers/csgo:latest 'printenv && ls -al && exec srcds_linux -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2'
docker run -it --rm -p 27016:27016/tcp -p 27016:27016/udp sourceservers/csgo:latest 'srcds_linux -game csgo -port 27016 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2'
docker run -it --rm -p 27016:27016/tcp -p 27016:27016/udp sourceservers/csgo:latest 'printenv && ls -al && exec srcds_linux -game csgo -port 27016 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2'
## Via custom entrypoint (game binary)
docker run -it --rm -p 27015:27015/tcp -p 27015:27015/udp --entrypoint srcds_linux sourceservers/csgo:latest -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
docker run -it --rm -p 27016:27016/tcp -p 27016:27016/udp --entrypoint srcds_linux sourceservers/csgo:latest -game csgo -port 27016 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
## Via custom entrypoint (/bin/bash)
docker run -it --rm -p 27015:27015/tcp -p 27015:27015/udp --entrypoint /bin/bash sourceservers/csgo:latest -c 'printenv && ls -al && exec srcds_linux -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2'
docker run -it --rm -p 27016:27016/tcp -p 27016:27016/udp --entrypoint /bin/bash sourceservers/csgo:latest -c 'printenv && ls -al && exec srcds_linux -game csgo -port 27016 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2'

# Counter-Strike 1.6
## Via default entrypoint (/bin/bash -c)
Expand Down
6 changes: 3 additions & 3 deletions docs/samples/docker-compose/docker-compose.bash-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ services:
srcds-csgo:
image: sourceservers/csgo:latest
ports:
- 27015:27015/tcp
- 27015:27015/udp
- 27016:27016/tcp
- 27016:27016/udp
stdin_open: true
tty: true
entrypoint:
Expand All @@ -32,7 +32,7 @@ services:
set -e
printenv
ls -al
exec srcds_linux -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
exec srcds_linux -game csgo -port 27016 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
srcds-hl2mp:
image: sourceservers/hl2mp:latest
Expand Down
6 changes: 3 additions & 3 deletions docs/samples/docker-compose/docker-compose.binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ services:
srcds-csgo:
image: sourceservers/csgo:latest
ports:
- 27015:27015/tcp
- 27015:27015/udp
- 27016:27016/tcp
- 27016:27016/udp
stdin_open: true
tty: true
entrypoint: srcds_linux
command: -game csgo -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
command: -game csgo -port 27016 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2

srcds-hl2mp:
image: sourceservers/hl2mp:latest
Expand Down

0 comments on commit 4865c48

Please sign in to comment.