Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
Created February 26, 2026 07:35
Show Gist options
  • Select an option

  • Save peterhellberg/cc1c31f357f2f640971edb946c109342 to your computer and use it in GitHub Desktop.

Select an option

Save peterhellberg/cc1c31f357f2f640971edb946c109342 to your computer and use it in GitHub Desktop.
MMMM Valheim Server
services:
valheim:
image: ghcr.io/lloesche/valheim-server
container_name: mmmm-valheim-server
cap_add:
- sys_nice
volumes:
- ./config:/config
- ./data:/opt/valheim
ports:
- "2456-2458:2456-2458/udp"
- "9001:9001/tcp"
env_file:
- valheim.env
restart: always
stop_grace_period: 2m
@peterhellberg
Copy link
Author

valheim.env can be something like;

WORLD_NAME=<WORLD>
SERVER_NAME=<NAME>
SERVER_PASS=<PASSWORD>
SERVER_PORT=2456
SERVER_PUBLIC=false
BACKUPS=true
ADMINLIST_IDS=<YOUR STEAM ID>
SERVER_ARGS="-modifier resources most"
TZ=Europe/Stockholm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment