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

22 lines
579 B
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
- $BACKUP:/mnt/borg-repository:rw
- $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