Add restore bind mount and hostname to restic

This commit is contained in:
Sam A. 2024-02-24 22:02:15 +01:00
parent af7e997d1d
commit 000726debe
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -7,6 +7,8 @@ services:
backup: backup:
image: mazzolino/restic:{{ apps_vars.restic.version }} image: mazzolino/restic:{{ apps_vars.restic.version }}
restart: always restart: always
hostname: {{ hostname }}
domainname: {{ fqdn }}
environment: environment:
RUN_ON_STARTUP: false RUN_ON_STARTUP: false
BACKUP_CRON: 0 0 3 * * * BACKUP_CRON: 0 0 3 * * *
@ -33,6 +35,7 @@ services:
TZ: {{ timezone }} TZ: {{ timezone }}
volumes: volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw" - "/var/run/docker.sock:/var/run/docker.sock:rw"
- "./data:/mnt/restore:rw"
{% for app in apps_backup|sort %} {% for app in apps_backup|sort %}
- "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro" - "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro"
{% endfor %} {% endfor %}