1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-22 11:34:22 +00:00
gestalt-amadeus/gdrive.docker-compose.yml

33 lines
1,007 B
YAML
Raw Normal View History

2023-03-14 18:32:14 +00:00
secrets:
2024-10-24 08:38:59 +00:00
google_client_config:
file: "./google_client_config.yml"
duplicity_passphrase:
file: "./duplicity_passphrase.txt"
2023-03-14 18:32:14 +00:00
volumes:
2024-10-24 08:38:59 +00:00
duplicity_credentials:
external: true
2024-10-24 09:04:36 +00:00
duplicity_cache:
external: true
2023-03-14 18:32:14 +00:00
services:
2024-10-24 08:38:59 +00:00
duplicity:
image: "ghcr.io/steffo99/backup-duplicity:latest"
entrypoint: "/bin/sh"
command: "/etc/periodic/daily/backup.sh"
restart: unless-stopped
volumes:
- "./exampledata:/mnt/example"
- "duplicity_credentials:/var/lib/duplicity"
2024-10-24 09:04:36 +00:00
- "duplicity_cache:/usr/lib/duplicity/.cache/duplicity"
2024-10-24 08:38:59 +00:00
environment:
MODE: "backup"
DUPLICITY_PASSPHRASE_FILE: "/run/secrets/duplicity_passphrase"
DUPLICITY_TARGET_URL: "pydrive://641079776729-90s4tnli0ao913ajrpv8cp3c4kkk77j5.apps.googleusercontent.com/Duplicity/this"
GOOGLE_DRIVE_SETTINGS: "/run/secrets/google_client_config"
NTFY: "https://ntfy.sh/garasauto"
NTFY_TAGS: "garasauto"
secrets:
- google_client_config
- duplicity_passphrase