Skip to content

Latest commit

 

History

History
48 lines (43 loc) · 1.87 KB

File metadata and controls

48 lines (43 loc) · 1.87 KB

Docker - TheForest Dedicated Server

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

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
    ports:
      - 8766:8766/tcp
      - 8766:8766/udp
      - 27015:27015/tcp
      - 27015:27015/udp
      - 27016:27016/tcp
      - 27016:27016/udp

Planned features in the future

Nothing yet

Software used

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