You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/roles/setup_hosted_services/templates/docker-volume-backup.j2

30 lines
902 B
Django/Jinja

---
# https://app.idrivee2.com/region/IE/buckets/backups/object-storage
version: "3"
services:
docker-volume-backup:
container_name: docker-volume-backup
restart: always
image: ghcr.io/chatton/docker-volume-backup:v0.3.0
command:
- periodic-backups
- --cron
- "0 3 * * *"
- --host-path
- /mnt/hdds/backups/
- --retention-days
- "7"
- --modes
- "filesystem,s3"
environment:
AWS_ACCESS_KEY_ID: {{ docker_volume_backup.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: {{ docker_volume_backup.aws_secret_access_key }}
AWS_DEFAULT_REGION: {{ docker_volume_backup.aws_default_region }}
AWS_BUCKET: {{ docker_volume_backup.aws_bucket }}
AWS_ENDPOINT: {{ docker_volume_backup.aws_endpoint }}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /mnt/hdds/backups:/backups
- /tmp:/tmp