diff --git a/docker-compose.yml b/docker-compose.yml index dd14208..0960d82 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -370,3 +370,15 @@ services: - ./riot/config.json:/app/config.json expose: - 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 diff --git a/restic/restic.env b/restic/restic.env new file mode 100644 index 0000000..843e0b3 --- /dev/null +++ b/restic/restic.env @@ -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