restic: Fix backup container local repo mounting

If our chosen backup repo is a local one, each restic container needs to
mount the local path as a volume, otherwise the data is stuck in the
container itself.
This commit is contained in:
Marty Oehme 2025-07-18 20:17:36 +02:00
parent f1be696479
commit 1fd72a05a6
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 6 additions and 0 deletions

View file

@ -31,6 +31,9 @@ services:
--tag grocy
RESTIC_BACKUP_SOURCES: "/backup"
volumes:
{% if restic_repo is regex('^/.+') %}
- "{{ restic_repo }}:{{ restic_repo }}"
{% endif %}
- "{{ stack_grocy_env_dir }}:/backup/{{ stack_grocy_env_dir }}"
{% endif %}