Sign inSign up

bardiir/dontstarvetogether

By bardiir

•Updated about 1 year ago

yeetzone/dontstarvetogether but with netcat installed so you can use healthckeck in docker compose

Image
1

3.9K

bardiir/dontstarvetogether repository overview

⁠Usage

docker-compose:

version: "3.9"
services: 
  overworld:
    image: bardiir/dontstarvetogether
    container_name: overworld
    hostname: overworld
    restart: always
    pull_policy: always
    healthcheck:
      test: ["CMD", "nc", "-zuv", "127.0.0.1", "10998"]
      interval: 2s
      timeout: 30s
      start_period: 300s
    env_file:
      - ./server.env
      - ./overworld.env
    volumes:
      - ./steamdata:/data
      - ./dst-cluster1:/opt/storage/cluster
    ports:
      - "10998:10998/udp"
      - "10988:10988/udp"
  caves:
    image: bardiir/dontstarvetogether
    container_name: caves
    hostname: caves
    restart: always
    pull_policy: always
    healthcheck:
      test: ["CMD", "nc", "-zuv", "127.0.0.1", "10997"]
      interval: 2s
      timeout: 30s
      start_period: 300s
    depends_on:
      overworld:
        condition: service_healthy
    links:
      - "overworld:overworld"
    env_file:
      - ./server.env
      - ./caves.env
    volumes:
      - ./steamdata:/data
      - ./dst-cluster1-caves:/opt/storage/cluster
    ports:
      - "10997:10997/udp"

server.env:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
STEAM_USER=steam
STEAM_HOME=/opt/steam
STEAM_URL=https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
STEAM_PATH=/data
STORAGE_PATH=/opt/storage
STEAM_APP=343050
CLUSTER_NAME=cluster
SHARD_NAME=shard
TOKEN=mykleitoken
ENCODE_USER_PATH=true
BACKUP_LOG_COUNT=0
NAME=servername
DESCRIPTION=serverdescription
LANGUAGE=de
PASSWORD=serverpassword
WHITELIST_SLOTS=2
WHITELIST=whitelistuserids
GAME_MODE=endless
INTENTION=social
ADMINLIST=adminuserids
PAUSE_WHEN_EMPTY=true
SHARD_CLUSTER_KEY=clustersecretkey, something random basically
SHARD_BIND_IP=0.0.0.0
SHARD_MASTER_PORT=10988
MODS=modids, commaseparated
SHARD_ENABLE=true

overworld.env:

SERVER_PORT=10998
WORLD_PRESET=SURVIVAL_TOGETHER
SHARD_IS_MASTER=true
SHARD_MASTER_IP=127.0.0.1

caves.env:

SERVER_PORT=10997
WORLD_PRESET=DST_CAVE
SHARD_IS_MASTER=false
SHARD_MASTER_IP=overworld

Tag summary

Content type

Image

Digest

sha256:01bb58176…

Size

125.5 MB

Last updated

about 1 year ago

docker pull bardiir/dontstarvetogether