Skip to content

Commit

Permalink
Unify all README examples in $HOME/valheim-server/ and add supervisor…
Browse files Browse the repository at this point in the history
… port to compose file
  • Loading branch information
lloesche committed Mar 6, 2021
1 parent e2612fa commit 9682751
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9682751

Please sign in to comment.