2021-09-10 14:20:43 +00:00
|
|
|
version: "2.4"
|
|
|
|
|
2021-09-10 14:16:03 +00:00
|
|
|
services:
|
|
|
|
|
2021-09-10 14:20:43 +00:00
|
|
|
borgmaticrestore:
|
|
|
|
container_name: Borg-restore
|
|
|
|
volumes:
|
2022-05-01 03:50:37 +00:00
|
|
|
- ${VOLUME_TARGET}:/mnt/borg-repository # backup source
|
|
|
|
- ${VOLUME_RESTORE}:/RestoreMount # restore target
|
|
|
|
- ${VOLUME_ETC_BORGMATIC}:/etc/borgmatic.d/ # borgmatic config file(s) + crontab.txt
|
|
|
|
- ${VOLUME_BORG_CONFIG}:/root/.config/borg # config and keyfiles
|
|
|
|
- ${VOLUME_SSH}:/root/.ssh # ssh key for remote repositories
|
|
|
|
- ${VOLUME_BORG_CACHE}:/root/.cache/borg # checksums used for deduplication
|
2021-09-10 14:16:03 +00:00
|
|
|
cap_add:
|
|
|
|
- SYS_ADMIN
|
|
|
|
security_opt:
|
|
|
|
- apparmor:unconfined
|
|
|
|
- label:disable
|
2021-09-10 14:20:43 +00:00
|
|
|
environment:
|
|
|
|
- TZ=$TZ
|
2021-09-10 14:16:03 +00:00
|
|
|
devices:
|
|
|
|
- /dev/fuse:/dev/fuse
|
|
|
|
command: /bin/sh
|
2021-09-10 14:20:43 +00:00
|
|
|
image: modem7/borgmatic-docker
|