GithubHelp home page GithubHelp logo

kevinunger / 7dtd-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from didstopia/7dtd-server

0.0 1.0 0.0 39 KB

Provides a dedicated linux server for 7 Days to Die running inside a Docker container.

License: MIT License

Shell 68.12% JavaScript 7.84% Dockerfile 15.71% PowerShell 8.33%

7dtd-server's Introduction

7 Days to Die server that runs inside a Docker container

This image will always install/update to the latest steamcmd and 7 Days to Die server, all you have to do to update your server is to redeploy the container.

Also note that the entire /steamcmd/7dtd can be mounted on the host system, which would avoid having to reinstall the game when updating or recreating the container.

How to run the server

  1. Optionally set the SEVEN_DAYS_TO_DIE_SERVER_STARTUP_ARGUMENTS environment variable to match your preferred server arguments (defaults are set to "-logfile /dev/stdout -quit -batchmode -nographics -dedicated", note how we're logging to stdout)
  2. Optionally set the SEVEN_DAYS_TO_DIE_CONFIG_FILE environment variable to a different configuration file (default is /root/.local/share/7DaysToDie/serverconfig.xml)
  3. Mount /steamcmd/7dtd and /root/.local/share/7DaysToDie somewhere on the host to keep your data safe (first path has the server files, while the second path has the config and save files)
  4. Run the server once to generate the default configuration file, then optionally edit it at /root/.local/share/7DaysToDie/serverconfig.xml to your liking

You can control the startup mode by using SEVEN_DAYS_TO_DIE_START_MODE. This determines if the server should update and then start (mode 0), only update (mode 1) or only start (mode 2)) The default value is "0".

Note that you should also enable telnet and optionally modify the SEVEN_DAYS_TO_DIE_TELNET_PORT and SEVEN_DAYS_TO_DIE_TELNET_PASSWORD environment variables accordingly, so the container can properly send the shutdown command to the server when the proper signal has been received (it uses telnet for this).

One additional feature you can enable is fully automatic updates, meaning that once a server update hits Steam, it'll restart the server and trigger the automatic update. You can enable this by setting SEVEN_DAYS_TO_DIE_UPDATE_CHECKING to "1".
You can also use a different branch via environment variables. For example, to install the latest experimental version, you would simply set SEVEN_DAYS_TO_DIE_BRANCH to latest_experimental (this is set to public by default).

If using Docker for Windows and the File System passthrough option, make sure to add the git repo drive letter as a shared drive through the Docker GUI.

License

See LICENSE

7dtd-server's People

Contributors

dids avatar groutc avatar guntram avatar jaakkytt avatar jammsen avatar

Watchers

 avatar

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.