Skip to content

Commit

Permalink
Docs (examples): Fix command values in `docs/samples/docker-compose/d…
Browse files Browse the repository at this point in the history
…ocker-compose.binary.yml`

The container's command should not be passed as a single parameter in an array of commands. Rather, it shoud be passed in a single line on `command:` which passes each parameter delimited by spaces
  • Loading branch information
joeltimothyoh committed Nov 10, 2023
1 parent 28892d7 commit e5f83c0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions docs/samples/docker-compose/docker-compose.binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ services:
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 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2

srcds-hl2mp:
image: sourceservers/hl2mp:latest
Expand All @@ -21,8 +20,7 @@ services:
tty: true
entrypoint:
- srcds_linux
command:
- -game hl2mp -port 27115 -maxplayers 16 +map dm_lockdown
command: -game hl2mp -port 27115 -maxplayers 16 +map dm_lockdown

srcds-left4dead2:
image: sourceservers/left4dead2:latest
Expand All @@ -33,8 +31,7 @@ services:
tty: true
entrypoint:
- srcds_linux
command:
- -game left4dead2 -port 27215 +map "c2m1_highway coop"
command: -game left4dead2 -port 27215 +map "c2m1_highway coop"

hlds-cstrike:
image: goldsourceservers/cstrike:latest
Expand All @@ -44,8 +41,7 @@ services:
tty: true
entrypoint:
- hlds_linux
command:
- -game cstrike +port 28015 +maxplayers 10 +map de_dust2
command: -game cstrike +port 28015 +maxplayers 10 +map de_dust2

hlds-czero:
image: goldsourceservers/czero:latest
Expand All @@ -55,8 +51,7 @@ services:
tty: true
entrypoint:
- hlds_linux
command:
- -game czero +port 28115 +maxplayers 10 +map de_dust2_cz
command: -game czero +port 28115 +maxplayers 10 +map de_dust2_cz

hlds-valve:
image: goldsourceservers/valve:latest
Expand All @@ -66,5 +61,4 @@ services:
tty: true
entrypoint:
- hlds_linux
command:
- -game valve +port 28215 +maxplayers 16 +map boot_camp
command: -game valve +port 28215 +maxplayers 16 +map boot_camp

0 comments on commit e5f83c0

Please sign in to comment.