Docker for OpenTTD Dedicated Server

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
ich777
Engineer
Engineer
Posts: 1
Joined: 14 Aug 2019 09:49

Docker for OpenTTD Dedicated Server

Post by ich777 » 14 Aug 2019 10:21

Hello everyone!

I want to inform you that i've created a Docker image (mainly for Unraid) for OpenTTD Dedicated Server it will automaticaly download the prefered version entered in the startup commands download all the needed files, compile it and start it.

Here are the startup commands:

Code: Select all

docker run --name OpenTTD -d \
    -p 3979:3979/tcp \
    -p 3979:3979/udp \
    --env 'GAME_PARAMS=' \
    --env 'GAME_VERSION=latest' \
    --env 'GFXPACK_URL=http://bundles.openttdcoop.org/opengfx/releases/0.5.5/opengfx-0.5.5.zip' \
    --env 'COMPILE_CORES=' \
    --env 'UID=99' \
    --env 'GID=100' \
    --volume /mnt/user/appdata/openttd:/serverdata/serverfiles \
    --restart=unless-stopped \
    ich777/openttdserver:latest
GAME_PARAMS = Enter your extra start up commands for the server if needed otherwise leave blank. To load the last autosavegame you MUST specifie the following '-D -g /serverdata/serverfiles/openttd/save/autosave/autosave0.sav' you can also customize the path begins always with '/serverdata/serverfiles/'
GAME_VERSON = if you set it to 'latest' it will grab the latest build an compile it you can also enter '1.8.0' and it will grab that version for you (downgrade and upgrade is always possible) the docker will check for a newer version or the prefered version on startup
GFXPACK_URL = enter here the graphics pack url, leave it as it is unless you are know what you are doing
COMPILE_CORES = how many cores you would use for compiling, leave it empty to use all available cores
UID = the UID of the User (don't change unless you know what you are doing)
GID = the GID of the Group (don't change unless you know what you are doing)
volume = the path where to save the files on your server to get easy acces to
restart=unless-stopped = the container will automaticaly restart if it crashes


If anyone has any questions feel free to ask. ;)


Regards, ich777

Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Google [Bot] and 3 guests