This is an easy-to-build don't starve together(dst) server based on docker, refer to protometa/dst. You can easily build a dst server(including mod support and caves) by following steps below.
The first thing you need to do is install docker and docker compose.
天朝用户可以使用Daocloud提供的脚本进行安装
Clone or download this project.
If you have git enviroment.clone it.
git clone https://github.com/gongpeione/dst-server-docker.git
or
Paste your server token in configs/cluster/cluster_token.txt
.If you don't know how to get your token,please follow this tutorial 4. Create your cluster_token.txt.
Modify configs/cluster/cluster.ini
,these items are important:
cluster_name
Your room's name.cluster_password
Your room's password,don't leave it empty if you don't want anybody else enter your dst world.
If you want to know what other items do,read this article Dedicated Server Settings Guide.
Setup mods by modify configs/mods/dedicated_server_mods_setup.lua
.You can open this file by any editor to see how to setup mods.And maybe you need to modify configs/cluster/Master/modoverrides.lua
and configs/cluster/Caves/modoverrides.lua
to make mods work.
docker-compose up -d
and that's it.
docker-compose restart //Update server
You can find your saved game in /var/lib/docker/volumes/dst_storage/_data/.klei/DoNotStarveTogether
.
curl -sSL https://raw.githubusercontent.com/gongpeione/dst-server-docker/master/aliyun-init.sh | sh
// Go to Step 3