# OpenRCT2 Multiplayer Server # Tested on: UGREEN DXP6800 Pro (UGOS), Docker Compose # # What it does: # On startup, the newest autosave (.park or .sv6) is loaded automatically. # If no autosave exists yet, the server starts with the fallback map (see below). # # Requirements: # - Original RollerCoaster Tycoon 2 game files (your own copy) in ./rct2-data # - Optional: RCT1 game files in ./rct1-data # - A fallback map, e.g. config/save/sixflags.sv6 # - Settings in config/config.ini: # [general] # game_path = "/docker/openrct2/rct2-data" # rct1_path = "/docker/openrct2/rct1-data" (only if you have RCT1 files) # autosave = 0 (0 = autosave every minute, recommended) # autosave_amount = 30 (number of autosaves to keep) # Without game_path, the server can't find the RCT2 files and won't start. # config.ini is created automatically on first start – edit it afterwards # and restart the container. # # Adjust: # - /volume2/docker/openrct2 → your own Docker folder # (my Docker runs on an NVMe volume = volume2, usually it's volume1) # - user: "UID:GID" → user/group with write access to the folders # (on UGREEN e.g. 1000:10, check with "id" via SSH) # - Port 30176 comes from my playit.gg tunnel (server online without port # forwarding). Without playit: use the OpenRCT2 default port 11753 and # forward it in your router. The port must match everywhere: port mapping, # "--port" in the command and your playit tunnel (if used). # - Replace the fallback map in the command (sixflags.sv6) if needed # # Note: # Watchtower is disabled via label. Server and players must run the same # OpenRCT2 version, an automatic update would otherwise block players from joining. # If you don't need this, you can pin a fixed version instead of "latest". services: openrct2: image: openrct2/openrct2-cli:latest container_name: openrct2-server restart: unless-stopped user: "1000:10" ports: - "30176:30176/tcp" volumes: - /volume2/docker/openrct2/config:/docker/openrct2/config - /volume2/docker/openrct2/rct2-data:/docker/openrct2/rct2-data - /volume2/docker/openrct2/rct1-data:/docker/openrct2/rct1-data entrypoint: ["sh", "-c"] 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"] labels: - "com.centurylinklabs.watchtower.enable=false"