1234567891011121314151617181920212223242526272829303132 |
- 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_HOSTNAME}
- - BORG_PASSPHRASE=${BORG_PASSPHRASE}
- - BORG_REPO=${BORG_REPO}
- - BORG_SOURCE_PATH=${BORG_SOURCE_PATH}
- - BORG_RETENTION=${BORG_RETENTION}
- - CRON=${CRON}
- networks:
- - prometheus_pushgateway
- networks:
- prometheus_pushgateway:
- external: true
|