From 4865c48d29c7f630189dd182c5019ffe48b6dd39 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 7 Mar 2024 05:22:56 +0000 Subject: [PATCH] Docs (examples): Assign separate port for `srcds-csgo` (#186) --- README.md | 8 ++++---- docs/samples/docker-compose/docker-compose.bash-c.yml | 6 +++--- docs/samples/docker-compose/docker-compose.binary.yml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5cc4fc87..4a9ac33c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/docs/samples/docker-compose/docker-compose.bash-c.yml b/docs/samples/docker-compose/docker-compose.bash-c.yml index 791d7da4..73858db8 100644 --- a/docs/samples/docker-compose/docker-compose.bash-c.yml +++ b/docs/samples/docker-compose/docker-compose.bash-c.yml @@ -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: @@ -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 diff --git a/docs/samples/docker-compose/docker-compose.binary.yml b/docs/samples/docker-compose/docker-compose.binary.yml index e9500b52..7c2a9e51 100644 --- a/docs/samples/docker-compose/docker-compose.binary.yml +++ b/docs/samples/docker-compose/docker-compose.binary.yml @@ -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