Sign inSign up

phlak/valheim

By phlak

•Updated over 5 years ago

Docker image for Valhime dedicated server.

Image
0

2.7K

phlak/valheim repository overview

⁠docker-valheim

Docker Valheim

Join our Community Become a Sponsor One-time Donation
Docker Image Version Docker Pulls License Docker Cloud Build Status

Docker image for Valheim⁠ dedicated server.


⁠Running the Container

First create a named data volume to hold the persistent world and config data:

docker volume create --name valheim-data

Then run the Valheim server:

docker run -it -d -p 2456-2458:2456-2458/udp -v valheim-data:/home/steam/.config/unity3d/IronGate/Valheim --name valheim-server phlak/valheim
⁠Optional 'docker run' Arguments

ENV SERVER_NAME "My World" ENV SERVER_PASSWORD "secret" ENV SERVER_PORT 2456 ENV WORLD_NAME "Valhalla"

-e SERVER_NAME="My world"
Set the name of your server. This will be the name that shows up in the community server browser.
-e SERVER_PASSWORD=secret
The server password.
-e WORLD_NAME=Valhalla
Set world name. This will be the name of the folder your world is saved in. Within the container you can find your worlds in the /home/steam/.config/unity3d/IronGate/Valheim/worlds folder
-e TZ=America/Phoenix
Set the timezone for your server. You can find your timezone in this list of timezones⁠. Use the (case sensitive) value from the TZ column. If left unset, timezone will be UTC.
--restart unless-stopped
Always restart the container regardless of the exit status, but do not start it on daemon startup if the container has been put to a stopped state before. See the Docker restart policies⁠ for additional details.

⁠Docker Compose

For quick and easy management via Docker Compose⁠ check out https://github.com/PHLAK/valheim-compose⁠

⁠Upgrading the Server

First pull down the latest image:

docker pull phlak/valheim

Remove your running server container:

docker rm -f valheim-server

And run a new one with the same command/arguments as before.

⁠Troubleshooting

For general help and support join our GitHub Discussions⁠ or reach out on Twitter⁠.

Please report bugs to the GitHub Issue Tracker⁠.

This project is licensed under the MIT License⁠.

Valheim copyright by Iron Gate Studios⁠.

Tag summary

Content type

Image

Digest

Size

794.1 MB

Last updated

over 5 years ago

docker pull phlak/valheim