Sebo

Sebo / OpenRCT2 Multiplayer Server

Last active 12 hours ago

Like 0

Dedicated OpenRCT2 server with Docker Compose. Automatically loads the latest autosave on restart, so your park progress is never lost. Tested on UGREEN DXP6800 Pro.

Sebo revised this gist 12 hours ago · 4dd2770

1 file changed, 53 insertions

docker-compose.yml (file created)
@@ -0,0 +1,53 @@
1 + # OpenRCT2 Multiplayer Server
2 + # Tested on: UGREEN DXP6800 Pro (UGOS), Docker Compose
3 + #
4 + # What it does:
5 + # On startup, the newest autosave (.park or .sv6) is loaded automatically.
6 + # If no autosave exists yet, the server starts with the fallback map (see below).
7 + #
8 + # Requirements:
9 + # - Original RollerCoaster Tycoon 2 game files (your own copy) in ./rct2-data
10 + # - Optional: RCT1 game files in ./rct1-data
11 + # - A fallback map, e.g. config/save/sixflags.sv6
12 + # - Settings in config/config.ini:
13 + # [general]
14 + # game_path = "/docker/openrct2/rct2-data"
15 + # rct1_path = "/docker/openrct2/rct1-data" (only if you have RCT1 files)
16 + # autosave = 0 (0 = autosave every minute, recommended)
17 + # autosave_amount = 30 (number of autosaves to keep)
18 + # Without game_path, the server can't find the RCT2 files and won't start.
19 + # config.ini is created automatically on first start – edit it afterwards
20 + # and restart the container.
21 + #
22 + # Adjust:
23 + # - /volume2/docker/openrct2 → your own Docker folder
24 + # (my Docker runs on an NVMe volume = volume2, usually it's volume1)
25 + # - user: "UID:GID" → user/group with write access to the folders
26 + # (on UGREEN e.g. 1000:10, check with "id" via SSH)
27 + # - Port 30176 comes from my playit.gg tunnel (server online without port
28 + # forwarding). Without playit: use the OpenRCT2 default port 11753 and
29 + # forward it in your router. The port must match everywhere: port mapping,
30 + # "--port" in the command and your playit tunnel (if used).
31 + # - Replace the fallback map in the command (sixflags.sv6) if needed
32 + #
33 + # Note:
34 + # Watchtower is disabled via label. Server and players must run the same
35 + # OpenRCT2 version, an automatic update would otherwise block players from joining.
36 + # If you don't need this, you can pin a fixed version instead of "latest".
37 +
38 + services:
39 + openrct2:
40 + image: openrct2/openrct2-cli:latest
41 + container_name: openrct2-server
42 + restart: unless-stopped
43 + user: "1000:10"
44 + ports:
45 + - "30176:30176/tcp"
46 + volumes:
47 + - /volume2/docker/openrct2/config:/docker/openrct2/config
48 + - /volume2/docker/openrct2/rct2-data:/docker/openrct2/rct2-data
49 + - /volume2/docker/openrct2/rct1-data:/docker/openrct2/rct1-data
50 + entrypoint: ["sh", "-c"]
51 + command: ["LATEST=$$(ls -t /docker/openrct2/config/save/autosave/*.park /docker/openrct2/config/save/autosave/*.sv6 2>/dev/null | head -n1); if [ -z \"$$LATEST\" ]; then LATEST=/docker/openrct2/config/save/sixflags.sv6; fi; exec openrct2-cli host \"$$LATEST\" --user-data-path /docker/openrct2/config --port 30176"]
52 + labels:
53 + - "com.centurylinklabs.watchtower.enable=false"