Add environment variables for server settings
Some checks failed
/ publish-docker (push) Failing after 3m53s
Some checks failed
/ publish-docker (push) Failing after 3m53s
This commit is contained in:
parent
6cf55c1ecb
commit
62627646b0
2 changed files with 26 additions and 11 deletions
15
compose.yaml
Normal file
15
compose.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
services:
|
||||||
|
stationeers-server:
|
||||||
|
image: git.ratte.dev/Laborratte5/stationeers-dedicated-server:latest
|
||||||
|
environment:
|
||||||
|
SERVER_NAME: My Server
|
||||||
|
SERVER_PASSWORD: SecureServerPass
|
||||||
|
ADMIN_PASSWORD: MySecureAdminPass
|
||||||
|
WORLD_ID: Mars2
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ./saves
|
||||||
|
target: /saves
|
||||||
|
ports:
|
||||||
|
- "27015:27015/udp"
|
||||||
|
- "27016:27016/udp"
|
||||||
|
|
@ -4,21 +4,21 @@ echo "Starting stationeers dedicated server"
|
||||||
echo > /server.log
|
echo > /server.log
|
||||||
|
|
||||||
./stationeers-dd/rocketstation_DedicatedServer.x86_64\
|
./stationeers-dd/rocketstation_DedicatedServer.x86_64\
|
||||||
-file start MyLunarMap Lunar\
|
-file start "/saves/${SAVEGAME_NAME:-my_station}" "${WORLD_ID:-Lunar}"\
|
||||||
-logFile "/server.log"\
|
-logFile "/server.log"\
|
||||||
-settings\
|
-settings\
|
||||||
StartLocalHost true\
|
StartLocalHost true\
|
||||||
ServerVisible true\
|
ServerVisible "${VISIBLE:-false}"\
|
||||||
GamePort 27016\
|
GamePort 27016\
|
||||||
UPNPEnabled false\
|
|
||||||
ServerName "MyLunarServer"\
|
|
||||||
ServerPassword "MySuperSecurePassword"\
|
|
||||||
ServerMaxPlayers 6\
|
|
||||||
AutoSave true\
|
|
||||||
SaveInterval 300\
|
|
||||||
ServerAuthSecret "MySuperSecureSecret"\
|
|
||||||
UpdatePort 27015\
|
UpdatePort 27015\
|
||||||
AutoPauseServer true\
|
UPNPEnabled false\
|
||||||
|
ServerName "${SERVER_NAME}"\
|
||||||
|
ServerPassword "${SERVER_PASSWORD}"\
|
||||||
|
ServerAuthSecret "${ADMIN_PASSWORD}"\
|
||||||
|
ServerMaxPlayers "${MAX_PLAYERS:-6}"\
|
||||||
|
AutoSave "${AUTOSAVE:-true}"\
|
||||||
|
SaveInterval "${SAVE_INTERVAL:-300}"\
|
||||||
|
AutoPauseServer "${AUTOPAUSE:-true}"\
|
||||||
UseSteamP2P false\
|
UseSteamP2P false\
|
||||||
LocalIpAddress 0.0.0.0\
|
LocalIpAddress 0.0.0.0\
|
||||||
& tail -f /server.log
|
& tail -f /server.log
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue