2021-07-09 09:21:42 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
minio:
|
|
|
|
image: minio/minio:RELEASE.2020-08-04T23-10-51Z
|
|
|
|
environment:
|
|
|
|
MINIO_ROOT_USER: test
|
|
|
|
MINIO_ROOT_PASSWORD: test
|
|
|
|
MINIO_ACCESS_KEY: test
|
|
|
|
MINIO_SECRET_KEY: GMusLtUmILge2by+z890kQ
|
|
|
|
entrypoint: /bin/ash -c 'mkdir -p /data/backup && minio server /data'
|
|
|
|
volumes:
|
|
|
|
- backup_data:/data
|
|
|
|
|
|
|
|
backup: &default_backup_service
|
2021-07-11 20:21:17 +02:00
|
|
|
image: offen/docker-volume-backup:${TEST_VERSION}
|
2021-07-09 09:21:42 +02:00
|
|
|
depends_on:
|
|
|
|
- minio
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID: test
|
|
|
|
AWS_SECRET_ACCESS_KEY: GMusLtUmILge2by+z890kQ
|
|
|
|
AWS_ENDPOINT: minio:9000
|
|
|
|
AWS_ENDPOINT_PROTO: http
|
|
|
|
AWS_S3_BUCKET_NAME: backup
|
2021-08-22 14:44:33 +02:00
|
|
|
BACKUP_FILENAME: test.tar.gz
|
2021-07-09 09:50:59 +02:00
|
|
|
BACKUP_CRON_EXPRESSION: 0 0 5 31 2 ?
|
2021-08-20 08:56:04 +02:00
|
|
|
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-7}
|
|
|
|
BACKUP_PRUNING_LEEWAY: 5s
|
2021-08-23 09:08:50 +02:00
|
|
|
GPG_PASSPHRASE: 1234secret
|
2021-08-22 14:00:21 +02:00
|
|
|
# BACKUP_PRUNING_PREFIX: test
|
2021-07-09 09:21:42 +02:00
|
|
|
volumes:
|
2021-08-19 09:25:53 +02:00
|
|
|
- ./local:/archive
|
2021-07-09 09:21:42 +02:00
|
|
|
- app_data:/backup/app_data:ro
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
|
|
|
offen:
|
|
|
|
image: offen/offen:latest
|
|
|
|
labels:
|
|
|
|
- docker-volume-backup.stop-during-backup=true
|
|
|
|
volumes:
|
|
|
|
- app_data:/var/opt/offen
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
backup_data:
|
|
|
|
app_data:
|