From 968275188afba7e601cd987e816a76e471e2fd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Sat, 6 Mar 2021 10:58:07 +0100 Subject: [PATCH] Unify all README examples in $HOME/valheim-server/ and add supervisor port to compose file --- README.md | 8 ++++---- docker-compose.yaml | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 11bc2b6..67fc33b 100644 --- a/README.md +++ b/README.md @@ -209,15 +209,15 @@ $ sudo systemctl start valheim.service ## Deploying with docker-compose Copy'paste the following into your shell ``` -mkdir -p $HOME/valheim/config $HOME/valheim/data -cd $HOME/valheim/ -cat > $HOME/valheim/valheim.env << EOF +mkdir -p $HOME/valheim-server/config $HOME/valheim-server/data +cd $HOME/valheim-server/ +cat > $HOME/valheim-server/valheim.env << EOF SERVER_NAME="My Server" WORLD_NAME=Dedicated SERVER_PASS=secret SERVER_PUBLIC=true EOF -curl -o $HOME/valheim/docker-compose.yaml https://raw.githubusercontent.com/lloesche/valheim-server-docker/main/docker-compose.yaml +curl -o $HOME/valheim-server/docker-compose.yaml https://raw.githubusercontent.com/lloesche/valheim-server-docker/main/docker-compose.yaml docker-compose up ``` diff --git a/docker-compose.yaml b/docker-compose.yaml index 59d4d6a..6a8ed17 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,10 +4,11 @@ services: valheim: image: lloesche/valheim-server volumes: - - $HOME/valheim/config:/config - - $HOME/valheim/data:/opt/valheim + - $HOME/valheim-server/config:/config + - $HOME/valheim-server/data:/opt/valheim ports: - - "2456-2458:2456-2458/udp" + - "2456-2458:2456-2458/udp" + - "9001/tcp" env_file: - - $HOME/valheim/valheim.env + - $HOME/valheim-server/valheim.env restart: always