mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-24 22:20:28 +01:00
26 lines
731 B
YAML
26 lines
731 B
YAML
services:
|
|
backup:
|
|
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
|
|
restart: always
|
|
environment:
|
|
BACKUP_FILENAME: $$NAME.tar.gz
|
|
BACKUP_FILENAME_EXPAND: 'true'
|
|
EXPANSION_VALUE: conf
|
|
volumes:
|
|
- ${LOCAL_DIR:-./local}:/archive
|
|
- app_data:/backup/app_data:ro
|
|
- ./01backup.env:/etc/dockervolumebackup/conf.d/01backup.env
|
|
- ./02backup.env:/etc/dockervolumebackup/conf.d/02backup.env
|
|
- ./03never.env:/etc/dockervolumebackup/conf.d/03never.env
|
|
- /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:
|
|
app_data:
|