Don't Starve Together Dedicated Server
Don't Starve Together Dedicated Server in a docker container, with persistent game data in a volume.
Install
Clone this repository, and run make build
to build an image:
git clone https://github.com/wastrachan/docker-dst.git
cd docker-dst
make build
If you need to rebuild the image, run make clean build
.
Usage
Setup / First Run
In order to start the server, the creators of Don't Starve Together require that you generate a "Cluster Token".
- Launch Don't Starve Together on your computer
- Press
~
to open the console - Type
TheNet:GenerateClusterToken()
and press enter - Close your game and navigate to:
/My Documents/Klei/DoNotStarveTogether/cluster_token.txt
on Windows~/Documents/Klei/DoNotStarveTogether/cluster_token.txt
on MacOS~/.klei/DoNotStarveTogether/cluster_token.txt
on Linux
- Copy the token from this file to
data/DoNotStarveTogether/Cluster_1/cluster_token.txt
- Restart the container
Run
Run this container with the included makefile make start
, or manually:
docker run -d --rm \
--name dst-server \
-v "$(pwd)/data:/dst" \
-p 27016:27016/tcp \
-p 10999:10999/udp \
wastrachan/dst-server:latest \
Configuration
When you first run the container, a configuration file will be created at data/DoNotStarveTogether/cluster.ini
.
You can open and edit this file to make changes to server settings.
Ports
The following ports are exposed and required for the game server to run:
Port | Description |
---|---|
10999 (udp) | Game server port |
27016 (tcp) | Steam service port |
Volumes
The container makes the following volumes available:
Volume | Description |
---|---|
/dst | Game data and configuration, to persist between runs |
License
The content of this project itself is licensed under the MIT License.
View license information for the software contained in this image: