28 lines
794 B
YAML
28 lines
794 B
YAML
---
|
|
backup_svc:
|
|
name: backup
|
|
|
|
backup_volumes_service: "{{ host_backup.backup.volumes | map_backup_volumes_service }}"
|
|
|
|
backup_env:
|
|
HC_UID: "{{ host_backup.backup.hc_uid }}"
|
|
UPTIME_KUMA_TOKEN: "{{ host_backup.backup.uptime_kuma_token }}"
|
|
|
|
RESTIC_REPOSITORY: "{{ vault_backup.restic.repository }}"
|
|
RESTIC_PASSWORD: "{{ vault_backup.restic.password }}"
|
|
|
|
AWS_ACCESS_KEY_ID: "{{ vault_backup.aws_secret.key_id }}"
|
|
AWS_SECRET_ACCESS_KEY: "{{ vault_backup.aws_secret.access_key }}"
|
|
|
|
backup_compose:
|
|
watchtower: false
|
|
image: backup
|
|
volumes: "{{ backup_volumes_service }}"
|
|
file:
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
restart: never
|
|
hostname: "{{ ansible_facts.hostname }}"
|
|
volumes: "{{ host_backup.backup.volumes | map_backup_volumes }}"
|