Folia migration #2

Merged
eldar merged 6 commits from folia-migration into main 2026-08-11 19:05:45 +02:00
2 changed files with 41 additions and 1 deletions
Showing only changes of commit b8e936cb30 - Show all commits
+1
View File
@@ -1,3 +1,4 @@
broadcast-data/
mc-data/
.env
mc-backups
+40 -1
View File
@@ -29,7 +29,40 @@ services:
- ./mcserver:/config
- ./plugins:/plugins
restart: unless-stopped
networks:
- mc-network
restore-backup:
# Same image as mc, but any base image with bash and tar will work
image: itzg/mc-backup
restart: "no"
entrypoint: restore-tar-backup
volumes:
# Must be same mount as mc service, needs to be writable
- ./mc-data:/data
# Must be same mount as backups service, but can be read-only
- ./mc-backups:/backups:ro
networks:
- mc-network
backups:
image: itzg/mc-backup
depends_on:
mc:
condition: service_healthy
restart: unless-stopped
environment:
BACKUP_INTERVAL: "24h"
RCON_HOST: mc
# since this service waits for mc to be healthy, no initial delay is needed
INITIAL_DELAY: 0
PRUNE_BACKUPS_COUNT: 3
RCON_PASSWORD: ${RCON_PASSWORD}
RCON_PORT: 25585
BACKUP_METHOD: "tar"
volumes:
- ./mc-data:/data:ro
- ./mc-backups:/backups
networks:
- mc-network
broadcaster:
image: ghcr.io/mcxboxbroadcast/standalone:latest
user: "${UID}:${GID}"
@@ -40,4 +73,10 @@ services:
condition: service_healthy
volumes:
- ./mcxboxbroadcast/config:/opt/data/config
networks:
- mc-network
restart: unless-stopped
networks:
mc-network:
driver: bridge