Skip to content

Commit

Permalink
switched valheim serv image
Browse files Browse the repository at this point in the history
  • Loading branch information
KenN7 committed Apr 6, 2022
1 parent 28fdfc8 commit ceef21a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
16 changes: 12 additions & 4 deletions valheim/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Valheim server
## Configure
Configure the password, name and world file:
Create a .env file and configure the password, name and world file:

```bash
echo PASSWORD=yourPW >> .env
echo NAME="Name Of Your World" >> .env
echo WORLD=WorldFilename >> .env
SERVER_PUBLIC=true
TZ=Europe/Brussels
BACKUPS_MAX_AGE=1
PUID=1000
PGID=1000
SERVER_PASS=YourPassword
SERVER_NAME=YourServerName
WORLD_NAME=WorldNameFile
```



22 changes: 7 additions & 15 deletions valheim/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@ version: "3"

services:
valheim:
image: mbround18/valheim:latest
image: ghcr.io/lloesche/valheim-server
restart: unless-stopped
cap_add:
- sys_nice
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
TZ: "Europe/Brussels"
PORT: "2456"
PUBLIC: "1"
AUTO_UPDATE: "1"
AUTO_BACKUP: "1"
AUTO_BACKUP_SCHEDULE: "30 */1 * * *"
AUTO_BACKUP_REMOVE_OLD: "1"
AUTO_BACKUP_DAYS_TO_LIVE: "1"
AUTO_BACKUP_ON_UPDATE: "1"
AUTO_BACKUP_ON_SHUTDOWN: "1"
env_file:
- .env
volumes:
- ${CONF_ROOT_DIR:-/src/docker}/valheim/conf:/home/steam/.config/unity3d/IronGate/Valheim
- ${CONF_ROOT_DIR:-/src/docker}/valheim/backups:/home/steam/backups
- ${DATA_ROOT_DIR:-/srv/data}/valheim/server:/home/steam/valheim
- ${CONF_ROOT_DIR:-/srv/docker}/valheim/conf:/config
- ${CONF_ROOT_DIR:-/srv/docker}/valheim/backups:/config/backups
- ${DATA_ROOT_DIR:-/srv/data}/valheim/server:/opt/valheim

0 comments on commit ceef21a

Please sign in to comment.