Don't Starve Together - Dedicated Server
DST Dedicated Server Guide for all platforms (Linux, Mac, Windows) with Docker.
The purpose of this project is to have DST servers up and running with the bare minimum necessary setup.
README in other languages
Installation
Any OS that supports Docker can run the dedicated server.
Linux is the recommended OS to host the containers for better performance gains
This project was deployed and tested using Debian 9. Instructions will be focused on Linux - but it should be easy to adapt to any other OS.
Installation Overview
Essentials
These are the minimum required steps to have a server running:
- Prepare the host
- Install Git
- Install Docker
- Setup the server
- Server files (clone this repository)
- Generate
cluster_token.txt
- Manage the server (how to start, save and stop)
- Basic settings setup (server name, password, etc.)
Optionals
Enhance your server by customizing it to your liking!
- Customize your server
- Tweak server settings (game mode, max players, Steam Group, description, etc.)
- World Settings (World Size, Seasons, Difficulty, etc)
- Install Mods
- Set Admins, Bans and Whitelisted Players
- How to optimize your DST Server Performance
Prepare the Host
Read about server performance for useful tips to make the best use of your resources! That might also help you to pick a host machine if you're unsure about it.
Install Git
sudo apt-get install git
Install Docker
Linux
Follow the official docs to install Docker on Linux. At first glance it might seem complicated, but the instructions are very detailed and thorough:
Make sure you have your own sudoer user and perform all the steps logged as it. Running everything as
rootuser will probably render you permissions issues down the road.
- Docker Engine CE
- Docker Compose
- IMPORTANT: Read through and follow the post-installation steps for Linux
- Enable your user to manage
dockerwithout the need ofsudo - Configure Docker to start on boot
- Enable your user to manage
Mac OS / Windows
You only need the Docker desktop standalone as it has everything you need, no extra steps required.
Prepare the dedicated server
Clone this repository in your home folder:
cd ~ && git clone https://github.com/mathielo/dst-dedicated-server.git
Do not
sudo git cloneor your might run into permission issues
See more info in Managing the Server.
Generate cluster_token.txt
DSTClusterConfig/cluster_token.txt file and without it your server won't run.
Check the detailed instructions to generate a cluster token. After you get it, make sure to delete everything from this file and leave only your cluster token there, without any spaces or anything else.
You can easily do that replacing InsertYourTokenHere in the following command and executing it in your server:
echo 'InsertYourTokenHere' > ~/dst-dedicated-server/DSTClusterConfig/cluster_token.txt