Skip to content

Commit

Permalink
add .env and update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Sep 12, 2024
1 parent 0c30b12 commit bc787dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
PORT=27016
MAXPLAYERS=32
MAP=de_dust2
SERVER_NAME=My great halfLife server!
SV_LAN=0
RCON_PASSWORD=""
12 changes: 1 addition & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
version: '3'

services:
hlds-gameserver:
build:
context: .
args:
MOD: valve
env_file: .env
environment:
PORT: 27016
MAXPLAYERS: 32
MAP: crossfire
SERVER_NAME: My great halfLife server!
SV_LAN: 0
RCON_PASSWORD: ""
ulimits: # Truncated core dumps fix
core:
soft: 1073741824 # 1GB
hard: 1073741824 # 1GB
ports:
- $PORT:$PORT/udp
- $PORT:27015/udp
expose:
- $PORT/udp
stdin_open: true
Expand All @@ -29,7 +20,6 @@ services:
-debug \
-game valve \
+ip 0.0.0.0 \
-port $PORT \
+map $MAP \
-maxplayers $MAXPLAYERS \
+sv_lan $SV_LAN \
Expand Down

0 comments on commit bc787dd

Please sign in to comment.