added .env.example and init.sh script
This commit is contained in:
11
.env.example
Normal file
11
.env.example
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Server vars
|
||||||
|
SERVER_NAME=My CSDM Server
|
||||||
|
RCON_PASSWORD=changeme
|
||||||
|
PORT = 27015
|
||||||
|
HLTV_PORT = 27020
|
||||||
|
VAC = "secure"
|
||||||
|
SV_LAN = 0
|
||||||
|
|
||||||
|
# Gameplay settings
|
||||||
|
START_MAP = "de_dust2"
|
||||||
|
MAX_PLAYERS = 32
|
@ -1,16 +1,16 @@
|
|||||||
services:
|
services:
|
||||||
csdm_1:
|
csdm_1:
|
||||||
build: .
|
build: .
|
||||||
container_name: csdm-1
|
container_name: csdm
|
||||||
ports:
|
ports:
|
||||||
- "27015:27015/udp"
|
- "${PORT}:${PORT}/udp"
|
||||||
- "27020:27020/udp"
|
- "${HLTV_PORT}:${HLTV_PORT}/udp"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MAP: "de_dust2"
|
MAP: "${START_MAP}"
|
||||||
MAXPLAYERS: "32"
|
MAXPLAYERS: "${MAX_PLAYERS}"
|
||||||
PORT: "27015"
|
PORT: "${PORT}"
|
||||||
HLTV_PORT: "27020"
|
HLTV_PORT: "${HLTV_PORT}"
|
||||||
RCON_PASSWORD: "bro1337"
|
RCON_PASSWORD: "${RCON_PASSWORD}"
|
||||||
SV_LAN: "0"
|
SV_LAN: "${SV_LAN}"
|
||||||
VAC: "insecure"
|
VAC: "${VAC}"
|
Reference in New Issue
Block a user