Merge pull request #22 from galinette-34/patch-1
Introduce variable CS2_IP
This commit is contained in:
commit
c89909568c
3 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,7 @@ STEAMGUARD="" (Optional, Steam Guard key if enabled. Use your most
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
CS2_SERVERNAME="changeme" (Set the visible name for your private server)
|
CS2_SERVERNAME="changeme" (Set the visible name for your private server)
|
||||||
|
CS2_IP=0.0.0.0 (CS2 server listening IP address, 0.0.0.0 - all IP addresses on the local machine, empty - IP identified automatically)
|
||||||
CS2_PORT=27015 (CS2 server listen port tcp_udp)
|
CS2_PORT=27015 (CS2 server listen port tcp_udp)
|
||||||
CS2_LAN="0" (0 - LAN mode disabled, 1 - LAN Mode enabled)
|
CS2_LAN="0" (0 - LAN mode disabled, 1 - LAN Mode enabled)
|
||||||
CS2_RCONPW="changeme" (RCON password)
|
CS2_RCONPW="changeme" (RCON password)
|
||||||
|
|
|
@ -33,6 +33,7 @@ RUN set -x \
|
||||||
FROM build_stage AS bullseye-base
|
FROM build_stage AS bullseye-base
|
||||||
|
|
||||||
ENV CS2_SERVERNAME="cs2 private server" \
|
ENV CS2_SERVERNAME="cs2 private server" \
|
||||||
|
CS2_IP=0.0.0.0 \
|
||||||
CS2_PORT=27015 \
|
CS2_PORT=27015 \
|
||||||
CS2_MAXPLAYERS=10 \
|
CS2_MAXPLAYERS=10 \
|
||||||
CS2_RCONPW="changeme" \
|
CS2_RCONPW="changeme" \
|
||||||
|
|
|
@ -47,7 +47,7 @@ fi
|
||||||
# Start Server
|
# Start Server
|
||||||
|
|
||||||
eval "./cs2" -dedicated \
|
eval "./cs2" -dedicated \
|
||||||
-port "${CS2_PORT}" \
|
-ip "${CS2_IP}" -port "${CS2_PORT}" \
|
||||||
-console \
|
-console \
|
||||||
-usercon \
|
-usercon \
|
||||||
-maxplayers_override "${CS2_MAXPLAYERS}" \
|
-maxplayers_override "${CS2_MAXPLAYERS}" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue