Skip to content

Commit

Permalink
Merge pull request #3 from indifferentbroccoli/1.0-release
Browse files Browse the repository at this point in the history
Satisfactory 1.0 release
  • Loading branch information
thijsvanloef authored Sep 11, 2024
2 parents 2a7a25d + ed6543b commit 1360525
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
MAX_PLAYERS=4
GAME_PORT=7777
QUERY_PORT=15777
BEACON_PORT=15000
SERVER_IP=0.0.0.0

# Engine settings
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ RUN mkdir -p /satisfactory && \
WORKDIR /home/steam/server

HEALTHCHECK --start-period=5m \
CMD pgrep "UnrealServer" > /dev/null || exit 1
CMD pgrep "Factory" > /dev/null || exit 1

EXPOSE 7777/udp 7777/tcp

ENTRYPOINT ["/home/steam/server/init.sh"]
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ services:
stop_grace_period: 30s
ports:
- '7777:7777/udp'
- '15000:15000/udp'
- '15777:15777/udp'
- '7777:7777/tcp'
environment:
PUID: 1000
PGID: 1000
Expand All @@ -83,8 +82,7 @@ docker run -d \
--name satisfactory \
--stop-timeout 30 \
-p 7777:7777/udp \
-p 15000:15000/udp \
-p 15777:15777/udp \
-p 7777:7777/tcp \
-e GENERATE_SETTINGS=true \
--env-file .env \
-v ./satisfactory/server-files:/satisfactory \
Expand All @@ -101,9 +99,7 @@ docker run -d \
| `AUTO_PAUSE` | `True` | Auto pause |
| `AUTO_SAVE_ON_DISCONNECT` | `True` | Auto save on disconnect |
| `MAX_PLAYERS` | `4` | Maximum players |
| `GAME_PORT` | `7777` | Game port |
| `QUERY_PORT` | `15777` | Query port |
| `BEACON_PORT` | `15000` | Beacon port |
| `GAME_PORT` | `7777` | Game port (TCP & UDP) |
| `SERVER_IP` | `0.0.0.0` | Server IP |

### Game settings
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ services:
stop_grace_period: 30s
ports:
- '7777:7777/udp'
- '15000:15000/udp'
- '15777:15777/udp'
- '7777:7777/tcp'
environment:
PUID: 1000
PGID: 1000
Expand Down
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install
# shellcheck disable=SC2317
term_handler() {
LogWarn "SIGTERM received, shutting down server"
kill -SIGTERM "$(pidof UnrealServer-Linux-Shipping)"
kill -SIGTERM "$(pidof FactoryServer-Linux-Shipping)"
tail --pid="$killpid" -f 2>/dev/null
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ elif [ "$GENERATE_SETTINGS" = "false" ]; then
fi

LogAction "Starting server"
su steam -c "./FactoryServer.sh -Port=${GAME_PORT} -BeaconPort=${BEACON_PORT} -ServerQueryPort=${QUERY_PORT} ${SERVER_IP}"
su steam -c "./FactoryServer.sh -Port=${GAME_PORT} -ini:Engine:[HTTPServer.Listeners]:DefaultBindAddress=any"

0 comments on commit 1360525

Please sign in to comment.