grocy: Add restic backup

This commit is contained in:
Marty Oehme 2025-07-18 20:02:19 +02:00
parent af5b647daf
commit 9cf1a5e571
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 20 additions and 3 deletions

View file

@ -16,9 +16,23 @@ services:
caddy: "{{ stack_grocy_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}"
{% if restic_enable is not undefined and not false and stack_grocy_restic_enable is not undefined and not false %}
backup:
image: mazzolino/restic
environment:
TZ: "{{ restic_tz }}"
BACKUP_CRON: "{{ stack_grocy_restic_cron }}"
RESTIC_REPOSITORY: "{{ restic_repo }}"
RESTIC_PASSWORD: "{{ restic_pass }}"
AWS_ACCESS_KEY_ID: "{{ restic_s3_key }}"
AWS_SECRET_ACCESS_KEY: "{{ restic_s3_secret }}"
RESTIC_BACKUP_ARGS: >-
--tag grocy
RESTIC_BACKUP_SOURCES: "/backup"
volumes:
- "{{ stack_grocy_env_dir }}:/backup/{{ stack_grocy_env_dir }}"
{% endif %}
networks:
caddy:
external: true
volumes:
caddy_data: {}