Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ ENV HOME=/home/steam \
GAME_PORT=7777 \
RELIABLE_PORT=7778 \
SERVER_IP=0.0.0.0 \
GENERATE_SETTINGS=true
GENERATE_SETTINGS=true \
BRANCH=public

COPY ./scripts /home/steam/server/

Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,27 @@
-p 7777:7777/udp \
-p 7777:7777/tcp \
-p 7778:7778/tcp \
-e PUID=1000 \
-e PGID=1000 \
-e GENERATE_SETTINGS=true \
-e BRANCH=public \
--env-file .env \
-v ./satisfactory/server-files:/satisfactory \
-v ./satisfactory/server-data:/home/steam/.config/Epic/FactoryGame/Saved/SaveGames
-v ./satisfactory/server-data:/home/steam/.config/Epic/FactoryGame/Saved/SaveGames \
indifferentbroccoli/satisfactory-server-docker
```

## Environment Variables

### Container settings

| Variable | Default | Description |
|---------------------|----------|---------------------------------------------------------------------------------|
| `PUID` | Required | User ID to run the server as |
| `PGID` | Required | Group ID to run the server as |
| `GENERATE_SETTINGS` | `true` | Generate settings from environment variables |
| `BRANCH` | `public` | Steam branch to install (`public` for stable or `experimental` for experimental) |

### Server settings

| Variable | Default | Description |
Expand Down Expand Up @@ -229,4 +241,4 @@
Generates the server settings file from the .env file.
Uses envsubst to replace the variables in the `.ini.template` files.


Check failure on line 244 in README.md

View workflow job for this annotation

GitHub Actions / Lint - Markdown

Multiple consecutive blank lines

README.md:244 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md012.md
4 changes: 3 additions & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ Log() {

install() {
LogAction "Starting server install"
/home/steam/steamcmd/steamcmd.sh +runscript /home/steam/server/install.scmd
LogInfo "Installing branch: ${BRANCH}"
envsubst < /home/steam/server/install.scmd > /tmp/install.scmd
/home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd
}

cpu_check(){
Expand Down
6 changes: 3 additions & 3 deletions scripts/install.scmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Do not shutdown on a failed command
@ShutdownOnFailedCommand 0
// Shutdown on a failed command so restart policy can pick it up
@ShutdownOnFailedCommand 1

//No password as this is unattended
@NoPromptForPassword 1
Expand All @@ -10,6 +10,6 @@ force_install_dir /satisfactory
login anonymous

// Install/Update the Satisfactory Dedicated Server
app_update 1690800 validate
app_update 1690800 -beta ${BRANCH} validate

quit
Loading