From b4d98f60b9982c84c65c8e9ec57a3550e3ff3904 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 25 Oct 2024 06:39:09 +0200 Subject: [PATCH] Tweaks --- README.md | 1 + compose.yml => compose.test.yml | 19 +++++++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) rename compose.yml => compose.test.yml (64%) diff --git a/README.md b/README.md index f9037c6..d475f5b 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ Backup solution for Docker volumes based on Duplicity NTFY_TAGS: "host-${HOSTNAME},${COMPOSE_PROJECT_NAME}" DUPLICITY_PASSPHRASE_FILE: "/run/secrets/ga_passphrase" GOOGLE_CLIENT_SECRET_JSON_FILE: "/run/secrets/ga_gdrive_client_secret" + GOOGLE_CREDENTIALS_FILE: "/var/lib/duplicity/google_credentials" GOOGLE_OAUTH_LOCAL_SERVER_HOST: "localhost" GOOGLE_OAUTH_LOCAL_SERVER_PORT: "80" secrets: diff --git a/compose.yml b/compose.test.yml similarity index 64% rename from compose.yml rename to compose.test.yml index c9a6d0f..8b77bbf 100644 --- a/compose.yml +++ b/compose.test.yml @@ -19,19 +19,18 @@ services: tty: true restart: unless-stopped volumes: - - "./exampledata:/mnt/exampledata" - - "ga_credentials:/var/lib/duplicity" - - "ga_cache:/usr/lib/duplicity/.cache/duplicity" + - type: bind + source: "./exampledata" + target: "/mnt" + - type: volume + source: ga_credentials + target: "/var/lib/duplicity" + - type: volume + source: ga_cache + target: "/usr/lib/duplicity/.cache/duplicity" environment: - # Change this to "restore" to restore from an existing backup MODE: "backup" - # Change the URL here to the Client ID specified in google_client_secret.json DUPLICITY_TARGET_URL: "gdrive://641079776729-da3fi7a2kgk5jkutsjdcnhugqolu40mo.apps.googleusercontent.com/this?myDriveFolderID=1_8rQ4E8ssoN-guFrGs7CC2IFofXBaimi" - # The URL to send ntfy notifications at - NTFY: "" - # Tags to append to ntfy notifications for this service - NTFY_TAGS: "${COMPOSE_PROJECT_NAME}" - #=== These shouldn't be edited. ===# GOOGLE_CLIENT_SECRET_JSON_FILE: "/run/secrets/google_client_secret" DUPLICITY_PASSPHRASE_FILE: "/run/secrets/duplicity_passphrase" GOOGLE_CREDENTIALS_FILE: "/var/lib/duplicity/google_credentials"