From d2098f25b2a15341ae52f10d4fd1d318b5f12725 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Sat, 24 Feb 2024 13:27:25 +0100 Subject: [PATCH] Add valheim server service --- valheim-server/docker-compose.yaml | 17 +++++++++++++++++ valheim-server/valheim.env.tpl | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 valheim-server/docker-compose.yaml create mode 100644 valheim-server/valheim.env.tpl diff --git a/valheim-server/docker-compose.yaml b/valheim-server/docker-compose.yaml new file mode 100644 index 0000000..7cbbce9 --- /dev/null +++ b/valheim-server/docker-compose.yaml @@ -0,0 +1,17 @@ +version: "3" + +services: + valheim: + image: ghcr.io/lloesche/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 diff --git a/valheim-server/valheim.env.tpl b/valheim-server/valheim.env.tpl new file mode 100644 index 0000000..5016ac5 --- /dev/null +++ b/valheim-server/valheim.env.tpl @@ -0,0 +1,6 @@ +SERVER_NAME=YOUR_SERVER_NAME +WORLD_NAME=Dedicated +SERVER_PASS=YOUR_PASSWORD +SERVER_PUBLIC=true +VALHEIM_PLUS=false +BEPINEX=true