123456789101112131415161718192021222324252627 |
- version: '3'
- services:
- borg:
- image: toastie89/borg
- build:
- context: ./build
- args:
- ALPINE_VER: 3.19.1
- BORG_VER: =1.2.7-r0
- container_name: borg
- hostname: borg
- volumes:
- - ${VOLUME_SOURCE}:/mnt/source:ro # backup source
- - ${VOLUME_TARGET}:/mnt/target:rw # backup target
- - ./data/.config/borg:/root/.config/borg # config and keyfiles
- - ./data/.cache/borg:/root/.cache/borg # checksums used for deduplication
- - ./scripts:/opt/scripts # scripts run by cron and helper
- environment:
- - TZ=${TZ}
- - PROM_URL=${PROM_URL}
- - BORG_HOSTNAME=${BORG_HOSTNAME}
- - BORG_PASSPHRASE=${BORG_PASSPHRASE}
- - BORG_REPO=${BORG_REPO}
- - BORG_SOURCE_PATH=${BORG_SOURCE_PATH}
- - BORG_RETENTION=${BORG_RETENTION}
- - CRON=${CRON}
|