You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
version: "3.8"
|
|
|
|
secrets:
|
|
B2_APPLICATION_KEY:
|
|
file: ../secrets/backup/B2_APPLICATION_KEY
|
|
B2_APPLICATION_KEY_ID:
|
|
file: ../secrets/backup/B2_APPLICATION_KEY_ID
|
|
BUCKET_NAME:
|
|
file: ../secrets/backup/BUCKET_NAME
|
|
PASSPHRASE:
|
|
file: ../secrets/backup/PASSPHRASE
|
|
|
|
services:
|
|
backup:
|
|
container_name: backup
|
|
image: tecnativa/docker-duplicity:latest
|
|
restart: unless-stopped
|
|
depends_on: [secrets]
|
|
secrets: [B2_APPLICATION_KEY, B2_APPLICATION_KEY_ID, BUCKET_NAME, PASSPHRASE]
|
|
environment:
|
|
HOSTNAME: ${DOMAIN}
|
|
TZ: America/New_York
|
|
entrypoint: ["/run"]
|
|
volumes:
|
|
- ./backup/run:/run:ro
|
|
|
|
backup-postgres:
|
|
container_name: backup-postgres
|
|
image: tecnativa/docker-duplicity-postgres:latest
|
|
restart: unless-stopped
|
|
depends_on: [secrets]
|
|
secrets: [B2_APPLICATION_KEY, B2_APPLICATION_KEY_ID, BUCKET_NAME, PASSPHRASE]
|
|
environment:
|
|
HOSTNAME: ${DOMAIN}
|
|
TZ: America/New_York
|
|
entrypoint: ["/run-postgres"]
|
|
volumes:
|
|
- ./backup/run-postgres:/run-postgres:ro
|
|
|
|
secrets:
|
|
volumes:
|
|
- ../secrets/backup/BUCKET_NAME:/secrets/backup/BUCKET_NAME
|
|
- ../secrets/backup/PASSPHRASE:/secrets/backup/PASSPHRASE
|