Sign inSign up

martingwheeler/valheim

By martingwheeler

•Updated 7 days ago

A Valheim image to help hosting a server. Supports V+ Reforged mod.

Image
0

10K+

martingwheeler/valheim repository overview

⁠What is Valheim?

A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by Viking culture. Battle, build, and conquer your way to a saga worthy of Odin’s patronage!

logo

⁠How to use this image

This image is a fork of CM2Walki/Valheim⁠ to add support for the V+ Reforged⁠ mod. The previous Valheim Plus⁠ mod is no longer maintained.

⁠Hosting a simple game server

Running on the host interface (recommended):

$ docker run -d --net=host --name=valheim-dedicated martingwheeler/valheim

Running using a bind mount for data persistence on container recreation:

$ mkdir -p $(pwd)/valheim-data
$ chmod 777 $(pwd)/valheim-data # Makes sure the directory is writeable by the unprivileged container user
$ docker run -d --net=host -v $(pwd)/valheim-data:/home/steam/valheim-dedicated/ --name=valheim-dedicated martingwheeler/valheim
---
$ docker volume create valheim-plus-data # For valheim:plus - Create an additional world volume
$ docker run -d --net=host -v $(pwd)/valheim-data:/home/steam/valheim-dedicated/ -v valheim-plus-data:/home/steam/.config/unity3d/IronGate/Valheim/ --name=valheim-plus-dedicated martingwheeler/valheim:plus

Running multiple instances (increment SERVER_PORT by two, there is no way to overwrite the steam query port, it will always be SERVER_PORT + 1!):

$ docker run -d --net=host -e SERVER_PORT=2458 --name=valheim-dedicated2 martingwheeler/valheim

It's also recommended to use "--cpuset-cpus=" to limit the game server to a specific core & thread.
The container will automatically update the game on startup, so if there is a game update just restart the container.

⁠Configuration

⁠Environment Variables

Feel free to overwrite these environment variables, using -e (--env):

SERVER_PORT=2456 (Game Port (tcp & udp); Steam Query Port (udp) will be SERVER_PORT + 1)
SERVER_PUBLIC=1
SERVER_WORLD_NAME="BraveNewWorld"
SERVER_PW="changeme"
SERVER_NAME="New \"${STEAMAPP}\" Server"
SERVER_LOG_PATH="logs_output/outputlog_server.txt"
SERVER_SAVE_DIR="Worlds"
SCREEN_QUALITY="Fastest"
SCREEN_WIDTH=640
SCREEN_HEIGHT=480
STEAMCMD_UPDATE_ARGS="" (Gets appended here: +app_update [appid] [STEAMCMD_UPDATE_ARGS]; Example: "validate")
ADDITIONAL_ARGS="" (Pass additional arguments to the server. Make sure to escape correctly!)

If you want to learn more about configuring a Valheim server check this documentation⁠.

⁠Config

You can find the adminlist.txt, bannedlist.txt and permittedlist.txt:

  • /home/steam/valheim-dedicated/Worlds for tag valheim:latest
  • /home/steam/.config/unity3d/IronGate/Valheim/Worlds for tag valheim:plus

The world database files can be found in:

  • /home/steam/valheim-dedicated/Worlds/worlds for tag valheim:latest
  • /home/steam/.config/unity3d/IronGate/Valheim/ for tag valheim:plus

⁠Image Variants:

The valheim images come in two flavors, each designed for a specific use case.

⁠valheim:latest

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is a bare-minimum Valheim dedicated server containing no 3rd party plugins.

⁠valheim:plus

This is a specialized image. It contains the popular mod V+ Reforged⁠.

Note: The game world is saved in a different directory in this tag, make sure to create an additional volume for world persistency across container recreations. See #Hosting a simple game server⁠ above.

⁠Contributors

Contributors Display

Tag summary

Content type

Image

Digest

sha256:5bea9e3c9…

Size

200.3 MB

Last updated

7 days ago

docker pull martingwheeler/valheim