• Stars
    star
    105
  • Rank 319,143 (Top 7 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

7 Days to Die server that runs inside a Docker container

Docker Automated build Docker build status Docker Pulls Docker stars

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 /app/.local/share/7DaysToDie/serverconfig.xml)
  3. Mount /steamcmd/7dtd and /app/.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 /app/.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

More Repositories

1

rust-server

Provides a dedicated linux server for Rust (the game) running inside a Docker container.
Shell
235
star
2

PDFSharp

A .NET Standard 2.0 library for reading, writing and editing PDF files.
C#
52
star
3

vrising-server

Provides a dedicated linux server for V Rising running inside a Docker container.
Shell
32
star
4

starbound-server

Provides a dedicated linux server for Starbound running inside a Docker container.
Shell
28
star
5

SwiftAction

Swift support for GitHub Actions.
Dockerfile
17
star
6

satisfactory-server

Satisfactory Dedicated Server in a Docker Container
Shell
12
star
7

terraria-server

Terraria server for Docker (TShock + Terracord)
Shell
7
star
8

valheim-server

Provides a dedicated linux server for Valheim running inside a Docker container.
Shell
6
star
9

docker-nuget-klondike

NuGet repository with Klondike for Docker.
Dockerfile
6
star
10

stationeers-server

Provides a dedicated linux server for Stationeers running inside a Docker container.
Shell
5
star
11

SDL2-Dockerfile

Dockerfile for cross-platform SDL2 development.
4
star
12

physfs

An automated, unofficial mirror for physfs, which pulls changes from Mercurial to Git.
C
4
star
13

motionerd

A continuous motion detection system written in GoLang.
Go
4
star
14

colony-survival-server

Provides a dedicated linux server for Colony Survival running inside a Docker container.
Shell
4
star
15

conan-exiles-server

Provides a dedicated linux server for Conan Exiles running inside a Docker container.
Shell
4
star
16

docker-base-images

Provides various base images for Docker.
Dockerfile
3
star
17

docker-realm-object-server

Realm Object Server for Docker.
Shell
3
star
18

factorio-server

Provides a dedicated linux server for Factorio running inside a Docker container.
Shell
3
star
19

msbuild

Aims to provide msbuild (.NET) functionality inside Docker.
Shell
2
star
20

docker-print-server

Provides basic functionality for running a print server in a Docker container (uses avahi, CUPS and AirPrint).
Python
2
star
21

docker-plex-cleaner

Run Plex Cleaner inside a Docker container.
Dockerfile
2
star
22

docker-minecraft-server

Auto-updating Minecraft server running inside a Docker container.
Shell
2
star
23

screeps-server

Docker image for a dedicated Screeps server
Dockerfile
2
star
24

klipper-gobackup

GoBackup for Klipper.
Shell
2
star
25

nuttyqt

nuttyqt (pronounced nutty-cutie) is a simple, cross-platform, and easy to use command line application, for relaying NUT (Network UPS Tools) notifications to an MQTT broker, written in Go.
Go
2
star
26

SDL_image

An automated, unofficial mirror for SDL_image, which pulls changes from Mercurial to Git.
C
1
star
27

docker-cron

The ideal base image for cronjob based containers.
Shell
1
star
28

EpubReader

A .NET Standard library for reading ePub files.
C#
1
star
29

rust-discord-bridge

A chat bridge between Rust (the game) and Discord.
JavaScript
1
star
30

fetchforge

A command line application for downloading clips from forge.gg
JavaScript
1
star
31

simple-apt-repo

This is a very simple, automated `apt` repository that runs inside a container, which you can easily use and host yourself.
Shell
1
star
32

docker-timecapsule

A Time Machine server inside a Docker container (originally forked from odarriba/docker-timemachine)
Shell
1
star
33

meteor-admzip

Provides easy access to AdmZip through Meteor.
JavaScript
1
star
34

PDFReader

A .NET Standard library for reading PDF files.
C#
1
star
35

klipper-configs

Our custom configuration files for Klipper.
1
star
36

7dtd-json-api

A simple JSON API for 7 Days to Die.
Go
1
star
37

distro-mirror

A Docker image for mirroring popular Linux distribution files, such as Ubuntu or Alpine.
Shell
1
star