Getting Started? Click Here! How to setup a Valheim Docker server! #28
Replies: 14 comments 44 replies
-
"Make content included"? Can you elaborate on what that means? |
Beta Was this translation helpful? Give feedback.
-
It would be convenient to have |
Beta Was this translation helpful? Give feedback.
-
@mbround18 what is the difference to use Odin over docker-compose. Would it use the same container / volumes, if I already have world within docker-compose? I am asking this because I am very confuse on how to use Odin haha |
Beta Was this translation helpful? Give feedback.
-
Apologies, new the whole docker/automation arena. When you make updates to the docker image and we do a pull, does it wipe or reset the contents of Valheim server inside? Or is it all separated? Also, does the Auto Update feature cleanly shutdown the server? I know there’s a world wipe bug out there. Automated backups? Thanks! |
Beta Was this translation helpful? Give feedback.
-
This Docker image really makes it easy to run a Valheim dedicated server. The docs are good, but I would like to suggest a more detailed list. Here's what I did (This is from my notes and recollection, there may be errors) :
id -u > 1010
nano -w docker-compose.yml # with contents to reflect uid of dockerguy: version: "3"
services:
valheim:
image: mbround18/valheim:latest
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
- PORT=2456
- NAME="ValenHeimsDay"
- WORLD="ValenHeimsDay"
- PASSWORD="1234567890"
- TZ=Pacific/Honolulu
- PUBLIC=1
- AUTO_UPDATE=0
- PUID=1010
- PGID=1010
volumes:
- ./valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
- ./valheim/server:/home/steam/valheim
docker-compose up (worked, saw the server connect message)
nmap -sU -p 2455-2459 10.0.0.123 (returns something like)
2457/udp open|filtered rapido-ip from outside IP - working.
Works! Wasted many hours with friend :D |
Beta Was this translation helpful? Give feedback.
-
I'm stucked here https://i.imgur.com/fZqjqo9.png 1 GB Memory / 25 GB Disk / SGP1 - Docker 19.03.12 on Ubuntu 20.04 But my 4 GB Memory / 80 GB Disk / SGP1 - Docker 19.03.12 on Ubuntu 20.04 Worked fine. |
Beta Was this translation helpful? Give feedback.
-
Allocating too little RAM seems to be a very common problem. Do you think its worth adding a changing "A Linux based server" to "A Linux based server with at least 2GB of spare RAM" or something along those lines? It might also be worth setting up a common troubleshooting discussion as well so that people can check there if they are having problems. |
Beta Was this translation helpful? Give feedback.
-
Working great on my end (Ubuntu 18.04 GCP) - thank you for this! |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I'm curious to know if this would support multiple dedicated servers, so we could host worlds for different groups of friends or adventures... Is there anything here that would stop that? |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the hard work! I've been using this project with my terraform module to run my Valheim server on AWS since the beginning! Introspection into the server with Odin is really cool |
Beta Was this translation helpful? Give feedback.
-
Hi!
My docker-compose.yaml version: "3"
services:
valheim:
privileged: true
image: mbround18/valheim:latest
platform: linux/amd64
stop_signal: SIGINT
ports:
- "2456:2456/udp"
- "2457:2457/udp"
- "2458:2458/udp"
environment:
PORT: 2456
NAME: "XXXXX"
WORLD: "Dedicated"
PASSWORD: "XXXXX"
TZ: "Europe/Warsaw"
PUBLIC: 0
ENABLE_CROSSPLAY: 1
AUTO_UPDATE: 1
AUTO_UPDATE_SCHEDULE: "0 1 * * *"
AUTO_BACKUP: 1
AUTO_BACKUP_SCHEDULE: "*/15 * * * *"
AUTO_BACKUP_REMOVE_OLD: 1
AUTO_BACKUP_DAYS_TO_LIVE: 3
AUTO_BACKUP_ON_UPDATE: 1
AUTO_BACKUP_ON_SHUTDOWN: 1
UPDATE_ON_STARTUP: 1
volumes:
- ./valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
- ./valheim/server:/home/steam/valheim
- ./valheim/backups:/home/steam/backups Full log:
|
Beta Was this translation helpful? Give feedback.
-
How to setup a Valheim Docker server
Prerequisites
Steps
su
into non-root user. (How to create a linux user)usermod -aG docker ${USER}
mkdir -p ./valheim
docker-compose.yml
. See Below.docker-compose.yml
into your favorite text editor.docker-compose up --detach
docker-compose.yml
Having issues? STOP! DO NOT CREATE A NEW THREAD ON THIS DOCUSSION. Please submit a new discussion in
Q&A
orHelp!
.New threads on this discussion where you need help are hard to track and it makes it difficult for others who are running into the same issue to find a solution.
Q&A
orHelp!
. Whichever best describes your issue.Help!
Help discussions are for if your server will not start no matter what you do. Common issues for this are:
Make sure to click the check mark on the thread that answered your question so that others can easily find the solution
PUID
orGUID
,docker
group on linux.)echo "$(id -u):$(id -g)"
. If this does not return1000:1000
, then you need to changePUID
andGUID
variables to match.docker-compose pull
and restarting the docker-compose.docker-compose down
and then rundocker-compose up
. Sometimes the way you have docker and docker-compose configured causes weird network states.docker-compose down && docker-compose up
Help Discussion Template
Q&A
This is used for general discussion and if you have curious questions about anything going on inside the container; this is a good area to ask that question.
Make sure to click the check mark on the thread that answered your question so that others can easily find the solution
Q&ADiscussion Template
## Question Free range to ask pretty much anything <3
Beta Was this translation helpful? Give feedback.
All reactions