Skip to content

A simple, easy, and clean Valheim server with Kubernetes.

License

Notifications You must be signed in to change notification settings

taurus228/valheim-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls :latest image size server build monitoring build helm build license

Valheim Docker Server & Helm Chart

Clean, fast and standalone Docker & Kubernetes helm deployments.

While there are many other images out there, they tend to fall into the bad habit of using anti-patterns, like using Supervisor and Cron in a single image. The images included here aim to avoid these bad habits, while still offering a full feature-set for managing and monitoring your Valheim Server.

What features do the images have?

  • A fully working Valheim Server without the need of steam downloading anything from the internet.
  • Using a non-root user to mitigate potential vulnerabilities.
  • Gracefully stops the server; enables proper saving before shutdown to avoid world corruption.
  • Automatic Backup of the world files when the server saves them onto the disk.
  • Sanitized server output; say goodbye to the debug noise that is not important!
  • Health-checks to monitor the image's basic status
  • Companion image for monitoring: adaliszk/valheim-server-monitoring
  • Helm chart for Kubernetes: https://charts.adaliszk.io

Server:

adaliszk/valheim-server

Alternatives: ghcr.io/adaliszk/valheim-server, quay.io/adaliszk/valheim-server

  • vanilla latest - always the latest stable build of the server
  • 0.150.3 0.150 - the server version released on 19/04/2021
  • bepinex-5.4.901 bepinex-5.4.9 bepinex-5.4 bepinex - latest server using denkinson's BepInEx mod loader
  • bepinex-full-1.0.5 bepinex-full-1.0 bepinex-full - latest server using 1F31A's BepInEx mod loader
  • plus-0.9.7 plus-0.9 plus - the latest server using Valheim Plus modpack
  • develop - build any actively testing branch

additionally, there are version prefixed tags from bepinex, bepinex-full, and plus variants!

docker run -p 2456-2457:2456-2457/udp adaliszk/valheim-server -name "My Server" -password="super!secret"

or

version: "3.8"
services:
    
  valheim:
    image: adaliszk/valheim-server
    environment:
      SERVER_NAME: "My custom message in the server list"
      SERVER_PASSWORD: "super!secret"
    ports:
      - 2456:2456/udp
      - 2457:2457/udp

More details about using this image

Kubernetes deployment:

helm repo add adaliszk https://charts.adaliszk.io
helm upgrade --install --create-namespace --wait my-valheim-server adaliszk/valheim-server

Monitoring companion:

adaliszk/valheim-server-monitoring

Alternatives: ghcr.io/adaliszk/valheim-server-monitoring, quay.io/adaliszk/valheim-server-monitoring

  • metrics - mtail metrics from the latest server version
  • metrics-0.148.7 metrics-0.148 - mtail metrics from the 0.148.7 released on 29/03/2021
  • metrics-0.148.6 - mtail metrics from the 0.148.6 released on 23/03/2021
  • metrics-0.147.3 metrics-0.147 - mtail metrics from the 0.147.3 released on 02/03/2021
  • prometheus - a pre-configured prometheus for docker environments
docker run --name my_server -d -p 2456-2457:2456-2457/udp adaliszk/valheim-server
docker run -d --volumes-from my_server:ro -d -p 3903:3903 adaliszk/valheim-server-monitoring:metrics

or

version: "3.8"
volumes:
  - logs: {}
services:

  valheim:
    image: adaliszk/valheim-server
    environment:
      SERVER_NAME: "My custom message in the server list"
      SERVER_PASSWORD: "super!secret"
    volumes:
      - logs:/logs
    ports:
      - 2456:2456/udp
      - 2457:2457/udp
  
  metrics:
    image: adaliszk/valheim-server-monitoring:metrics
    volumes:
      - logs:/logs:ro
    ports:
      - 3903:3903

Examples

Contributions

Feel free to open Tickets or Pull-Requests, however, keep in mind that the idea is to keep it simple, and separate the concerns into multiple small images that are ready without needing to download anything from the internet.

If you have questions, please use the Discussions tab or ping me on the Valheim Discord server: Kicsivazz#2537

About

A simple, easy, and clean Valheim server with Kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 42.9%
  • Dockerfile 32.4%
  • Python 24.7%