Skip to content

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support

License

Notifications You must be signed in to change notification settings

dahlo/valheim-server-docker

Repository files navigation

valheim-server-docker

Valheim Server in a Docker Container

Docker example

$ mkdir -p $PWD/valheim-server-config
$ docker run -d --rm \
    -p 2456-2458:2456-2458/udp \
    -v $PWD/valheim-server-config:/config \
    -e SERVER_NAME="My Server" \
    -e WORLD_NAME="Neotopia" \
    -e SERVER_PASS="secret" \
    lloesche/valheim-server

Docker+systemd example

Create an optional config file /etc/sysconfig/valheim-server

SERVER_NAME="My Server"
SERVER_PORT=2456
WORLD_NAME=Dedicated
SERVER_PASS=secret
SERVER_PUBLIC=1
$ sudo mkdir /etc/valheim
$ sudo curl -o /etc/systemd/system/valheim-server.service https://raw.githubusercontent.com/lloesche/valheim-server-docker/master/valheim-server.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable valheim-server.service
$ sudo systemctl start valheim-server.service

About

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 67.4%
  • Python 14.6%
  • Go 9.6%
  • Dockerfile 7.5%
  • HCL 0.9%