services: add Restic

Finally a way to actually back up my data...
This commit is contained in:
Bruno BELANYI 2020-12-30 18:30:49 +01:00
parent 2e84953a66
commit ff5ff5bb3d
2 changed files with 17 additions and 0 deletions

View file

@ -370,3 +370,15 @@ services:
- ./riot/config.json:/app/config.json - ./riot/config.json:/app/config.json
expose: expose:
- 80 - 80
restic:
image: lobaro/restic-backup-docker
restart: unless-stopped
container_name: restic
hostname: restic-athos
env_file:
- ./restic/restic.env
- ./restic/restic.env.secret
volumes:
- ~/library/:/data/library
- ~/nextcloud/:/data/nextcloud

5
restic/restic.env Normal file
View file

@ -0,0 +1,5 @@
RESTIC_FORGET_ARGS=--prune --keep-last 10 --keep-hourly 24 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 100
#RESTIC_PASSWORD=FIXME
#B2_ACCOUNT_ID=FIXME
#B2_ACCOUNT_KEY=FIXME
#RESTIC_REPOSITORY=FIXME