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

26 lines
595 B
YAML
Raw Normal View History

2023-04-16 18:16:59 +02:00
services:
borg:
container_name: borg
image: pschiffe/borg
volumes:
- /mnt/borg:/borg/repo
- $DATA/borg/config:/root
- $DATA:/borg/data/docker-data:ro
- /etc/localtime:/etc/localtime:ro
environment:
- BORG_REPO=/borg/repo
- BORG_PASSPHRASE=${BORG_PASSPHRASE}
- BACKUP_DIRS=/borg/data
- COMPRESSION=lz4
- PRUNE=1
restart: "no"
cron:
container_name: cron-scheduling
image: alpine:latest
volumes:
- ./config/cron:/etc/cron.d:ro
- /etc/localtime:/etc/localtime:ro
command: crond -f
restart: unless-stopped