Warning
Update Jan-2025: This Docker-Image had a major refactoring including breaking changes in downwards-compability. This was done for removing dependency of "root" in the image, which caused various SteamCMD, NAS, QNAP, Synology and Portainer problems. Also the Docker-Base-Image was switched and there was better process-handling added to make sure the process exits cleanly, no matter how Docker or the User stops the server.
It is recommended to do a fresh install, via the new readme in a fresh directory to understand what changed and work backwards to adapt the changes, or migrate the savegame from the old server to the new one, up to you. If you need help, feel free to join the Discord server and ask in the right channel for the game.
Note
If you are looking for the TheForest version, please look here: https://github.com/jammsen/docker-the-forest-dedicated-server
This repository includes a Sons of the Forest Dedicated Server based on Docker with Wine and an example config.
- 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
- Feel free to create a NEW issue
- 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!
- Dont re-use issues!
- Basic understanding of Docker, Docker Compose, Linux and Networking (Port-Forwarding/NAT)
Tip
Currently out-dated, because of Major refactoring, with breaking changes!
We have very detailed instruction in our Wiki page.
If you already hosted some containers, just follow these steps:
- Go to the directory you want to host your gameserver on your Dockernode
- Create a sub-directory called
game
- Download the docker-compose.yml or use the following example
- Review the file and setup the settings you like
- Setup Port-Forwarding or NAT for the ports in the Docker-Compose file
- Start the container via Docker Compose
- (Tip: Extended config settings, which are not covered by Docker Compose, can be setup in the config-file of the server - You can find it at
game/userdata/dedicatedserver.cfg
)
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:
PUID: 1000
PGID: 1000
ALWAYS_UPDATE_ON_START: true
SKIP_NETWORK_ACCESSIBILITY_TEST: true
ports:
- 8766:8766/udp
- 27016:27016/udp
- 9700:9700/udp
volumes:
- ./game:/sonsoftheforest
- Feel free to suggest features in the issues
- Debian Stable and SteamCMD via cm2network/steamcmd:root image as base-image
- gosu
- procps
- winbind
- wine
- xvfb
- SonsOfTheForest Dedicated Server (APP-ID: 2465200)