2022-03-04 13:51:26 +01:00
|
|
|
services:
|
|
|
|
backup:
|
|
|
|
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
|
|
|
|
restart: always
|
2024-02-13 15:43:04 +01:00
|
|
|
environment:
|
|
|
|
BACKUP_FILENAME: $$NAME.tar.gz
|
|
|
|
BACKUP_FILENAME_EXPAND: 'true'
|
2024-02-15 12:04:44 +01:00
|
|
|
EXPANSION_VALUE: conf
|
2022-03-04 13:51:26 +01:00
|
|
|
volumes:
|
2023-09-02 15:17:46 +02:00
|
|
|
- ${LOCAL_DIR:-./local}:/archive
|
2022-03-04 13:51:26 +01:00
|
|
|
- app_data:/backup/app_data:ro
|
2022-03-25 18:26:34 +01:00
|
|
|
- ./01backup.env:/etc/dockervolumebackup/conf.d/01backup.env
|
|
|
|
- ./02backup.env:/etc/dockervolumebackup/conf.d/02backup.env
|
|
|
|
- ./03never.env:/etc/dockervolumebackup/conf.d/03never.env
|
2022-03-04 13:51:26 +01:00
|
|
|
- /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:
|