GithubHelp home page GithubHelp logo

Serverconfig via ENV about btl44 HOT 4 OPEN

frenos avatar frenos commented on August 20, 2024
Serverconfig via ENV

from btl44.

Comments (4)

frenos avatar frenos commented on August 20, 2024

Can set

  • Servername
  • Port
  • Password
  • PlayMode
  • AdminSteamId
    via Environement variables.

from btl44.

Alexander-Krause-Glau avatar Alexander-Krause-Glau commented on August 20, 2024

"Edit configfile before running server". I think a (readonly) volume for a specific config file on the host system should solve this, right? You already mentioned it in your README too.

docker run --name btlserver -v /path/to/host/config:/path/to/container/config frenos/btl44. If the config file exists on the host, the container will use this one, if it does not exists the container will use the embedded config file.

from btl44.

frenos avatar frenos commented on August 20, 2024

Yes, that was exactly our first thought about that.
If you just want a single customized server that will work fine when the config is writable, but you have to be aware that set environment variables will also write to that config.
I also had a chat with the serveradmin of a gaming community that want to run 6 equal servers with just the hostnames different.

We got the following solution:

  • Customized config is mounted to a dummy directory, together with possible custom decks
  • Container starts and copies those files over the default server config
  • Container sets environment variables in the (copied) config
  • Container starts server

The big advantage: I can customize a new base-config with all the great settings I want on my servers, then start n containers and give each one a different servername via separate environment variables.
I think that looks like the most flexible solution for all cases and I will implement this probably tonight or tomorrow.

from btl44.

Alexander-Krause-Glau avatar Alexander-Krause-Glau commented on August 20, 2024

Sounds good to me.

from btl44.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.