This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/roles/backup/vars/main.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

---
backup_svc:
name: backup
2023-12-28 15:16:31 +00:00
backup_volumes_service: "{{ host_backup.volumes | map_backup_volumes_service }}"
backup_env:
2023-12-28 15:16:31 +00:00
HC_UID: "{{ host_backup.hc_uid }}"
UPTIME_KUMA_TOKEN: "{{ host_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: .
2023-12-16 18:22:53 +00:00
entrypoint:
- /usr/bin/restic
- --retry-lock=1m
restart: never
hostname: "{{ ansible_facts.hostname }}"
2024-01-06 19:56:47 +00:00
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
2023-12-28 15:16:31 +00:00
volumes: "{{ host_backup.volumes | map_backup_volumes }}"