JACOBSMILE / tmodloader1.4

An easy to configure Docker Image for tModLoader 1.4 servers.
Other
120 stars 29 forks source link

Add option to change server settings without recreating container #57

Open Measurity opened 3 weeks ago

Measurity commented 3 weeks ago

Problem context

Docker does not allow to change environment variables of a container. Instead, it needs to be recreated. This means unnecessary downloading from within the container like the dotnet SDK on every config change. In addition, the configuration file option is marked as deprecated so an alternative might soon be gone.

Suggestion

Allow a shell script to be mounted that will run just before the Terraria server starts. This would allow setting of environment variables on startup. For example:

export TMOD_MOTD="Welcome to my server running on $(uname -pr)!"