Skip to content

jammsen/docker-sons-of-the-forest-dedicated-server

Repository files navigation

Docker - Sons of the Forest 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 Sons of the Forest Dedicated Server based on Docker with Wine and an example config.

Do you need support for this Docker Image

  • What to do?
    • Feel free to create a NEW issue
      • It is okay to "reference" that you might have the same problem as the person in issue #number
    • Follow the instructions and answer the questions of people who are willing to help you
    • If your issue is done, close it
      • I will Inactivity-Close any issue thats not been active for a week
  • What NOT to do?
    • Dont re-use issues!
      • You are most likely to chat/spam/harrass thoose participants who didnt agree to be part of your / a new problem and might be totally out of context!
    • If this happens, i reserve the rights to lock the issue or delete the comments, you have been warned!

What you need to run this

  • Basic understanding of Docker, Linux and Networking (Port-Forwarding/NAT)

Getting started

We have very detailed instruction in our Wiki page.

If you already hosted some containers, just follow these steps:

  1. Create 2 sub-directories on your Dockernode in your game-server-directory (/srv/sonsoftheforest/steamcmd and /srv/sonsoftheforest/game)
  2. Setup Port-Forwarding or NAT for the ports in the Docker-Compose file
  3. Start the container with the following examples:

Bash:

docker run --rm -i -t -p 8766:8766/udp -p 27016:27016/udp -p 9700:9700/udp -v $(pwd)/steamcmd:/steamcmd -v $(pwd)/game:/sonsoftheforest --name sons-of-the-forest-dedicated-server jammsen/sons-of-the-forest-dedicated-server:latest

Docker-Compose:

version: '3.9'
services:
  sons-of-the-forest-dedicated-server:
    container_name: sons-of-the-forest-dedicated-server
    image: jammsen/sons-of-the-forest-dedicated-server:latest
    restart: always
    environment:
      ALWAYS_UPDATE_ON_START: 1
      SKIP_NETWORK_ACCESSIBILITY_TEST: false
    ports:
      - 8766:8766/udp
      - 27016:27016/udp
      - 9700:9700/udp
    volumes:
      - ./steamcmd:/steamcmd
      - ./game:/sonsoftheforest
      - ./winedata:/winedata

Planned features in the future

  • Feel free to suggest something

Software used

  • Debian Slim Stable
  • Xvfb
  • Winbind
  • Wine
  • SteamCMD
  • SonsOfTheForest Dedicated Server (APP-ID: 2465200)