Donimax / theforest-docker

Docker container to easily provision and manage the forest dedicated server with wine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker - TheForest Dedicated Server

Docker Pulls Docker Image Size (tag)

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 SERVERSTEAMACCOUNT)
  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 'SERVERSTEAMACCOUNT=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 /opt/docker/theforest:/config --name theforest-docker donimax/theforest-docker:latest
or
docker run --rm -i -t -e 'SERVERSTEAMACCOUNT=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/config:/config --name theforest-docker donimax/theforest-docker:latest

Docker-Compose:

version: "3.7"
services:
  the-forest-server-01:
    container_name: the-forest-server-01
    image: donimax/theforest-docker:latest
    restart: unless-stopped
    ports:
      - 8766:8766/tcp
      - 8766:8766/udp
      - 27015:27015/tcp
      - 27015:27015/udp
      - 27016:27016/tcp
      - 27016:27016/udp
    volumes:
      - '/opt/docker/theforest/config:/config'
    environment:
      - SERVERSTEAMACCOUNT=bal

Environment variables

Env default description
TIMEZONE Europe/Berlin Timezone
PUID 1000 puid
PGID 1000 pgid
STEAMAPPID 556450 steamappid
SERVERIP 0.0.0.0 Server IP address
SERVERSTEAMPORT 8766 Steam Communication Port
SERVERGAMEPORT 27015 Game Communication Port
SERVERQUERYPORT 27016 Query Communication Port
SERVERNAME the-forest-server-01 Server display name
SERVERPLAYERS 8 Maximum number of players
ENABLEVA on Enable VAC
SERVERPASSWORD Server password. Blank means no password. It is recommended to have a password to prevent griefers.
SERVERPASSWORDADMIN Server administration password. Blank means no password.
SERVERSTEAMACCOUNT Don't leave this blank or use your actual Steam account name.The Forest App ID number is 242760. DO NOT SHARE THIS CODE!
SERVERAUTOSAVEINTERVAL 30 Time between server auto saves in minutes - The minumum time is 15 minutes
DIFFICULTY Normal Game difficulty mode. Must be set to Peaceful / Normal / Hard / HardSurvival
INITTYPE Continue Must be set to New or Continue. If left on New, the game won't save and you will have to restart each time.
SLOT 1 Slot to save the game. Must be set to either slot 1 / slot 2 / slot 3 / slot 4 / slot 5.
SHOWLOGS off Show event log. Must be set off or on. It is highly recommended to leave this on, this will show if your server is working or not and what issues you may be having, if any. Options are showLogs on or showLogs off.
SERVERCONTACT email@gmail.com Contact email for server admin. Not required.
VEGANMODE off No enemies if switched off. Options are veganMode on or veganMode off.
VEGETARIANMODE off No enemies during day time. Options are vegetarianMode on or vegetarianMode off.
RESETHOLESMODE off Reset all structure holes when loading a save. These are holes caused by the hole cutter. This has the same effect as the woodpaste command. Options are resetHolesMode on or resetHolesMode off
TREEREGROWMODE off Regrow 10% of cut down trees when sleeping. Options are treeRegrowMode on or treeRegrowMode off
ALLOWBUILDINGDESTRUCTION on Allow building destruction. Options are allowBuildingDestruction on or allowBuildingDestruction off
ALLOWENEMIESCREATIVEMODE off Allow enemies in creative games. Options are allowEnemiesCreativeMode on or allowEnemiesCreativeMode off.
ALLOWCHEAT off Allow clients to use the built in debug console. This only disables console commands, it has no effect on mods such as the Ultimate Cheat Menu. People can still grief your game. Options are allowCheats on or allowCheats off.
REALISTICPLAYERDAMAGE off Realistic Player Damage (On/Off), this allows the game to be more PvP based. Damage to other players will be increased dramatically, depending on the weapon.

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


Languages

Language:Shell 76.4%Language:Dockerfile 23.6%