Clone
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Managed Valheim Server
Managed Valheim is a fully automated, self-updating, BepInEx‑patched Valheim dedicated server designed for TrueNAS SCALE and other container platforms. It provides a clean SteamCMD installation, reliable mod integration, and optional world backup automation.
What This Project Provides
- Automatic SteamCMD installation & updates
The server installs and updates itself every time the container starts. SteamCMD handles validation and patching using anonymous login. - Managed BepInEx integration
The container downloads, validates, and installs the official BepInExPack Valheim from Thunderstore, then applies required patches and generates a managed startup wrapper. - Clean + Modded directory separation
SteamCMD installs into/opt/valheim_base(clean), while the server runs from/opt/valheim(modded). This prevents SteamCMD rollback errors and ensures reliable updates. - Automated world backups
The server can automatically back up world files at a configurable interval, storing timestamped ZIP archives in/backups. Old backups are pruned based on a retention window. - TrueNAS SCALE ready
Exposes Valheim ports (2456–2458 UDP), supports persistent volumes, and integrates cleanly with SCALE’s app configuration system.
Key Environment Variables
| Variable | Default | Description |
|---|---|---|
SERVER_NAME |
Valheim Server | Display name of the server |
WORLD_NAME |
Dedicated | World save name |
SERVER_PASSWORD |
changeme | Password required to join |
PUBLIC |
1 | Public listing toggle |
BACKUP_INTERVAL |
21600 | Backup interval (seconds) |
BACKUP_RETENTION_DAYS |
7 | Days to retain backups |
How It Works
- Container starts and runs
entrypoint.sh. - SteamCMD installs or updates Valheim in
/opt/valheim_base. - Updated binaries are copied into
/opt/valheim. - BepInEx is downloaded, validated, extracted, and patched.
- The managed wrapper launches the server with correct parameters.
- A background loop performs world backups and pruning.
Directory Layout
/opt/steamcmd— SteamCMD installation/opt/valheim_base— Clean Valheim install/opt/valheim— Modded runtime directory/backups— Managed backup output/config— TrueNAS SCALE config volume
Notes
- Shader warnings and
libParty.soerrors are normal for headless servers and do not affect gameplay. - All logs stream to container stdout and are visible in TrueNAS SCALE.
- BepInEx logs appear under
/opt/valheim/BepInEx/.
For detailed configuration, troubleshooting, and modding instructions, see the other pages in this wiki.