Add mount service to backup
This commit is contained in:
parent
24d93ecad6
commit
03ccb49229
2 changed files with 18 additions and 30 deletions
|
@ -28,4 +28,22 @@ backup_compose:
|
|||
- --retry-lock=1m
|
||||
restart: never
|
||||
hostname: "{{ ansible_facts.hostname }}"
|
||||
mount:
|
||||
build:
|
||||
context: .
|
||||
image: backup
|
||||
restart: never
|
||||
hostname: "{{ ansible_facts.hostname }}"
|
||||
env_file:
|
||||
- service.env
|
||||
entrypoint:
|
||||
- /usr/bin/restic
|
||||
- --retry-lock=1m
|
||||
command:
|
||||
- mount
|
||||
- /mnt
|
||||
privileged: true
|
||||
devices:
|
||||
- /dev/fuse
|
||||
|
||||
volumes: "{{ host_backup.volumes | map_backup_volumes }}"
|
||||
|
|
Reference in a new issue