Page 1 of 1

Docker Configuration For Dedicated Server Question

Posted: 17 Apr 2020 04:50
by neosamuri
Hi,

I have a couple questions related to the Docker container found here: https://hub.docker.com/r/bateau/openttd
So far I can run the container and can connect to it no problem. My question is related to configuration and saves.
1. How do I config the server so I can add a password and change the server name etc.
2. I made a local save from my desktop and then uploaded it to the server. I tried to load it when running the docker and it spit out the file was unreadable.

I have read the FAQ and Docker page a number of times but something just isn't clicking on what I need to do.

Thanks in advance if someone can point me in the right direction.

Re: Docker Configuration For Dedicated Server Question

Posted: 17 Apr 2020 09:27
by planetmaker
1) Passwords etc are all configured in openttd.cfg which you should find within that docker container - where exactly depends on how it is setup inside the container. Maybe alongside the binary, maybe in ~/.openttd.

2) Maybe the binary was compiled without support for some compression algorithms, especially the current default.

Re: Docker Configuration For Dedicated Server Question

Posted: 17 Apr 2020 17:50
by neosamuri
I had a look around and I just can't seem to find it in the docker container.
https://github.com/bateau84/openttd/blo ... openttd.sh
I looked at the script it is running to trigger the server and I can see it is not running the -c flag with would specify a different config file to run.

The openttd binary seems to exist in /usr/games but there is nothing else in that folder. If the binary runs and you don't specify a config file what happens? Does the application just generate it's own base config and then remove it after it stops? Or does it absolutely need a openttd.cfg sitting somewhere to operate?

Re: Docker Configuration For Dedicated Server Question

Posted: 29 Dec 2022 16:48
by andreashauschild
Update: I have publish a docker container can host mutiple dedicated servers at once.

The container allows you to host multiple instances of OpenTTD dedicated servers in a single container, providing an efficient and convenient environment for hosting these servers.

It provides the following features:
  • Login protected admin gui
  • Lanaging multiple dedicated OpenTTD server instance. You just need to expose the needed ports on container startup.
  • Upload/Download of save games and configuration files
  • Password protection for dedicated servers
  • Auto save of running servers
  • Auto pause and unpause on inactive servers. If no player is playing the server is running but paused. Server unpauses if a player joins a company.
  • Simple terminal to send commands directly to the dedicated server

The Project is on github and open source: https://github.com/andreashauschild/openttd-server
Docker: https://hub.docker.com/r/hauschi86/openttd-server