Skip to content

Commit

Permalink
Satisfactory 1.0 Port changes (#258)
Browse files Browse the repository at this point in the history
* Remove unused ports

---------

Co-authored-by: Robert Thomas <[email protected]>
  • Loading branch information
ikiris and wolveix authored Sep 10, 2024
1 parent 82797b5 commit 04237c6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 28 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM steamcmd/steamcmd:ubuntu-24

# hadolint ignore=DL3008
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gosu xdg-user-dirs --no-install-recommends\
Expand Down Expand Up @@ -31,16 +32,14 @@ ENV AUTOPAUSE="true" \
PGID="1000" \
PUID="1000" \
ROOTLESS="false" \
SERVERBEACONPORT="15000" \
SERVERGAMEPORT="7777" \
SERVERIP="0.0.0.0" \
SERVERQUERYPORT="15777" \
SERVERSTREAMING="true" \
SKIPUPDATE="false" \
STEAMAPPID="1690800" \
STEAMBETA="false" \
TIMEOUT="30"

EXPOSE 7777/udp 15000/udp 15777/udp
EXPOSE 7777/udp 7777/tcp

ENTRYPOINT [ "/init.sh" ]
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ docker run \
--memory-reservation=4G \
--memory 6G \
--publish 7777:7777/udp \
--publish 15000:15000/udp \
--publish 15777:15777/udp \
--publish 7777:7777/tcp \
wolveix/satisfactory-server:latest
```

Expand Down Expand Up @@ -72,8 +71,7 @@ services:
image: 'wolveix/satisfactory-server:latest'
ports:
- '7777:7777/udp'
- '15000:15000/udp'
- '15777:15777/udp'
- '7777:7777/tcp'
volumes:
- '/path/to/config:/config'
environment:
Expand Down Expand Up @@ -123,10 +121,8 @@ helm install satisfactory k8s-at-home/satisfactory -f values.yaml
| `PGID` | `1000` | set the group ID of the user the server will run as |
| `PUID` | `1000` | set the user ID of the user the server will run as |
| `ROOTLESS` | `false` | run the container as a non-root user |
| `SERVERBEACONPORT` | `15000` | set the game's beacon port |
| `SERVERGAMEPORT` | `7777` | set the game's port |
| `SERVERIP` | `0.0.0.0` | set the game's ip (usually not needed) |
| `SERVERQUERYPORT` | `15777` | set the game's query port |
| `SERVERSTREAMING` | `true` | toggle whether the game utilizes asset streaming |
| `SKIPUPDATE` | `false` | avoid updating the game on container start/restart |
| `STEAMBETA` | `false` | set experimental game version |
Expand Down
15 changes: 5 additions & 10 deletions cluster/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ metadata:
spec:
type: NodePort
ports:
- port: 15777
nodePort: 15777
protocol: UDP
name: "query"
targetPort: "query"
- port: 15000
nodePort: 15000
protocol: UDP
name: "beacon"
targetPort: "beacon"
- port: 7777
nodePort: 7777
protocol: UDP
name: "game"
targetPort: "game"
- port: 7777
nodePort: 7777
protocol: TCP
name: "gameTCP"
targetPort: "gameTCP"
selector:
app: satisfactory
9 changes: 3 additions & 6 deletions cluster/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ spec:
- name: STEAMBETA
value: "false"
ports:
- containerPort: 15777
name: "query"
protocol: UDP
- containerPort: 15000
name: "beacon"
protocol: UDP
- containerPort: 7777
name: "gameTCP"
protocol: TCP
- containerPort: 7777
name: "game"
protocol: UDP
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ services:
image: 'wolveix/satisfactory-server:latest'
ports:
- '7777:7777/udp'
- '15000:15000/udp'
- '15777:15777/udp'
- '7777:7777/tcp'
volumes:
- '/path/to/config:/config'
environment:
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ fi

cd /config/gamefiles || exit 1

exec ./FactoryServer.sh -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" $SERVERIP "$@"
exec ./FactoryServer.sh -Port="$SERVERGAMEPORT" $SERVERIP "$@"

0 comments on commit 04237c6

Please sign in to comment.