homelab/bxl-shp/system/docker-compose.backup.yaml

40 lines
1.1 KiB
YAML
Raw Normal View History

2023-09-26 09:53:42 +02:00
services:
2023-10-11 16:46:38 +02:00
borgmatic:
container_name: borgmatic
image: ghcr.io/borgmatic-collective/borgmatic:latest
restart: unless-stopped
2023-09-26 09:53:42 +02:00
volumes:
2023-10-11 16:46:38 +02:00
- $DATA:/mnt/source:ro
2023-10-12 19:37:11 +02:00
- $BACKUP/shp:/mnt/borg-repository:rw
2023-10-11 16:46:38 +02:00
- $CONFIG/borgmatic/etc:/etc/borgmatic.d
- $DATA/borgmatic/borg:/root/.config/borg
- $DATA/borgmatic/ssh:/root/.ssh
- $DATA/borgmatic/cache:/root/.cache/borg
2023-09-26 09:53:42 +02:00
- /etc/localtime:/etc/localtime:ro
environment:
2023-10-11 16:46:38 +02:00
- TZ=Europe/Paris
- BORG_PASSPHRASE=none
- BACKUP_CRON=0 5 * * *
- RUN_ON_STARTUP=true
networks:
- storage
2023-09-26 09:53:42 +02:00
2023-10-12 19:37:11 +02:00
borgmatic-vps:
container_name: borgmatic-vps
image: ghcr.io/borgmatic-collective/borgmatic:latest
restart: unless-stopped
volumes:
- /mnt/vps:/mnt/source:ro
- $BACKUP/vps:/mnt/borg-repository:rw
- $CONFIG/borgmatic/etc:/etc/borgmatic.d
- $DATA/borgmatic-vps/borg:/root/.config/borg
- $DATA/borgmatic-vps/ssh:/root/.ssh
- $DATA/borgmatic-vps/cache:/root/.cache/borg
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Europe/Paris
- BORG_PASSPHRASE=none
- BACKUP_CRON=0 5 * * *
- RUN_ON_STARTUP=true