Skip to content

jammsen/docker-the-forest-dedicated-server

Repository files navigation

Docker - TheForest Dedicated Server

Build-Status master Docker Pulls Docker Stars Image Size Discord

Tip

Do you want to chat with the community?

Join us on Discord

This includes a TheForest Dedicated Server based on Docker with Wine and an example config.

Docker - Sons of the Forest Dedicated Server

If you are looking for the Sons of the Forest version, please look here: https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server

What you need to run this

  • Basic understanding of Linux and Docker

Getting started

WARNING: If you dont do Step 1 and 2 your server can/will not save!

  1. Create a new game server account over at https://steamcommunity.com/dev/managegameservers (Use AppID: 242760)
  2. Insert the Login Token into the environment variable via docker-run or docker-compose (at SERVER_STEAM_ACCOUNT_TOKEN)
  3. Create 2 directories on your Dockernode (/srv/tfds/steamcmd and /srv/tfds/game)
  4. Start the container with the following examples:

Bash:

docker run --rm -i -t -e 'SERVER_STEAM_ACCOUNT_TOKEN=YOUR_TOKEN_HERE' -p 8766:8766/tcp -p 8766:8766/udp -p 27015:27015/tcp -p 27015:27015/udp -p 27016:27016/tcp -p 27016:27016/udp -v /srv/tfds/steamcmd:/steamcmd -v /srv/tfds/game:/theforest --name the-forest-dedicated-server jammsen/the-forest-dedicated-server:latest
or
docker run --rm -i -t -e 'SERVER_STEAM_ACCOUNT_TOKEN=YOUR_TOKEN_HERE' -p 8766:8766/tcp -p 8766:8766/udp -p 27015:27015/tcp -p 27015:27015/udp -p 27016:27016/tcp -p 27016:27016/udp -v $(pwd)/theforest/steamcmd:/steamcmd -v $(pwd)/theforest/game:/theforest --name the-forest-dedicated-server jammsen/the-forest-dedicated-server:latest

Docker-Compose:

version: "3.7"
services:
  the-forest-dedicated-server:
    container_name: the-forest-dedicated-server
    image: jammsen/the-forest-dedicated-server:latest
    restart: always
    environment:
      SERVER_STEAM_ACCOUNT_TOKEN: YOUR_TOKEN_HERE
      ALWAYS_UPDATE_ON_START: 1
    ports:
      - 8766:8766/tcp
      - 8766:8766/udp
      - 27015:27015/tcp
      - 27015:27015/udp
      - 27016:27016/tcp
      - 27016:27016/udp
    volumes:
      - ./steamcmd:/steamcmd
      - ./game:/theforest
      - ./winedata:/winedata

Planned features in the future

Nothing yet

Software used

  • Debian Slim Stable
  • Xvfb
  • Winbind
  • Wine
  • SteamCMD
  • TheForest Dedicated Server

About

Docker container to easily provision and manage The Forest Dedicated Server with Wine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published