Skip to content

Valheim server

Valheim is another popular game that me and my friends play. It can also be self-hosted via docker.

services:
    valheim-server:
      image: ghcr.io/lloesche/valheim-server
      container_name: valheim-server
      cap_add:
          - sys_nice
      stop_grace_period: "120"
      ports:
        - 2456-2457:2456-2457/udp
      volumes:
        - $HOME/valheim-server/config:/config
        - $HOME/valheim-server/data:/opt/valheim
      environment:
        - SERVER_NAME=server-name # the name that players will see when joining the world
        - WORLD_NAME=world-name # the name of the world folder
        - SERVER_PASS=secret # password for joining the server