mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-23 09:20:22 +01:00
14 lines
371 B
YAML
14 lines
371 B
YAML
services:
|
|
backup:
|
|
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
environment:
|
|
BACKUP_FILENAME: test.tar.gz
|
|
BACKUP_CRON_EXPRESSION: 0 0 5 31 2 ?
|
|
BACKUP_EXCLUDE_REGEXP: '\.(me|you)$$'
|
|
volumes:
|
|
- ${LOCAL_DIR:-./local}:/archive
|
|
- ./sources:/backup/data:ro
|