File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ ENV HOME=/home/steam \
1717 GAME_PORT=7777 \
1818 RELIABLE_PORT=7778 \
1919 SERVER_IP=0.0.0.0 \
20- GENERATE_SETTINGS=true
20+ GENERATE_SETTINGS=true \
21+ BRANCH=public
2122
2223COPY ./scripts /home/steam/server/
2324
Original file line number Diff line number Diff line change @@ -86,15 +86,27 @@ docker run -d \
8686 -p 7777:7777/udp \
8787 -p 7777:7777/tcp \
8888 -p 7778:7778/tcp \
89+ -e PUID=1000 \
90+ -e PGID=1000 \
8991 -e GENERATE_SETTINGS=true \
92+ -e BRANCH=public \
9093 --env-file .env \
9194 -v ./satisfactory/server-files:/satisfactory \
92- -v ./satisfactory/server-data:/home/steam/.config/Epic/FactoryGame/Saved/SaveGames
95+ -v ./satisfactory/server-data:/home/steam/.config/Epic/FactoryGame/Saved/SaveGames \
9396 indifferentbroccoli/satisfactory-server-docker
9497```
9598
9699## Environment Variables
97100
101+ ### Container settings
102+
103+ | Variable | Default | Description |
104+ | ---------------------| ----------| ---------------------------------------------------------------------------------|
105+ | ` PUID ` | Required | User ID to run the server as |
106+ | ` PGID ` | Required | Group ID to run the server as |
107+ | ` GENERATE_SETTINGS ` | ` true ` | Generate settings from environment variables |
108+ | ` BRANCH ` | ` public ` | Steam branch to install (` public ` for stable or ` experimental ` for experimental) |
109+
98110### Server settings
99111
100112| Variable | Default | Description |
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ Log() {
4141
4242install () {
4343 LogAction " Starting server install"
44- /home/steam/steamcmd/steamcmd.sh +runscript /home/steam/server/install.scmd
44+ LogInfo " Installing branch: ${BRANCH} "
45+ envsubst < /home/steam/server/install.scmd > /tmp/install.scmd
46+ /home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd
4547}
4648
4749cpu_check (){
Original file line number Diff line number Diff line change 1- // Do not shutdown on a failed command
2- @ShutdownOnFailedCommand 0
1+ // Shutdown on a failed command so restart policy can pick it up
2+ @ShutdownOnFailedCommand 1
33
44//No password as this is unattended
55@NoPromptForPassword 1
@@ -10,6 +10,6 @@ force_install_dir /satisfactory
1010login anonymous
1111
1212// Install/Update the Satisfactory Dedicated Server
13- app_update 1690800 validate
13+ app_update 1690800 -beta ${BRANCH} validate
1414
1515quit
You can’t perform that action at this time.
0 commit comments