This commit is contained in:
Sam A. 2022-11-25 21:41:37 +01:00
parent 814a268965
commit 439a538c14
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -1,8 +1,9 @@
--- ---
- name: setup restic backup - name: Setup restic backup
when: not vagrant
docker_compose: docker_compose:
project_name: restic_backup project_name: restic_backup
pull: yes pull: true
definition: definition:
version: '3.6' version: '3.6'
services: services:
@ -27,7 +28,7 @@
TZ: Europe/Copenhagen TZ: Europe/Copenhagen
volumes: volumes:
- /docker-volumes:/mnt/volumes:ro - /docker-volumes:/mnt/volumes:ro
restic-prune: restic-prune:
image: "mazzolino/restic:1.6.0" image: "mazzolino/restic:1.6.0"
environment: environment:
@ -36,4 +37,3 @@
RESTIC_REPOSITORY: "rest:https://{{ restic.user }}:{{ restic_secrets.user_password }}@{{ restic.domain }}/{{ restic.repository }}" RESTIC_REPOSITORY: "rest:https://{{ restic.user }}:{{ restic_secrets.user_password }}@{{ restic.domain }}/{{ restic.repository }}"
RESTIC_PASSWORD: "{{ restic_secrets.repository_password }}" RESTIC_PASSWORD: "{{ restic_secrets.repository_password }}"
TZ: Europe/copenhagen TZ: Europe/copenhagen
when: not vagrant