forked from mbround18/enshrouded-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.with-backups.yaml
36 lines (36 loc) Β· 1.27 KB
/
docker-compose.with-backups.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "3.8"
services:
enshrouded:
image: mbround18/enshrouded-docker:latest
build:
context: .
dockerfile: Dockerfile
environment:
SERVER_NAME: "My Enshrouded Server" # Optional, Name of the server
# PASSWORD: "" # Optional, Password for the server
# SAVE_DIRECTORY: ./savegame # Optional, Save directory for the game
# LOG_DIRECTORY: ./logs # Optional, Log directory for the server
# SERVER_IP: 0.0.0.0 # Optional, IP address for the server
# GAME_PORT: 15636 # Optional, Game port for the server
# QUERY_PORT: 15637 # Optional, Query port for the server
# SLOT_COUNT: 16 # Optional, Number of slots for the server
ports:
- "15636:15636/udp"
- "15636:15636/tcp"
- "15637:15637/udp"
- "15637:15637/tcp"
volumes:
- ./data:/home/steam/enshrouded
backups:
image: mbround18/backup-cron:latest
environment:
- SCHEDULE=*/5 * * * *
- INPUT_FOLDER=/home/steam/enshrouded/savegame
- OUTPUT_FOLDER=/home/steam/backups
- OUTPUT_USER=1000
- OUTPUT_GROUP=1000
- RETAIN_N_DAYS=5
volumes:
- ./data:/home/steam/enshrouded
- ./backups:/home/steam/backups
restart: unless-stopped