mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-14 18:40:26 +01:00
29 lines
664 B
YAML
29 lines
664 B
YAML
|
# Copyright 2020-2021 - Offen Authors <hioffen@posteo.de>
|
||
|
# SPDX-License-Identifier: Unlicense
|
||
|
|
||
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
backup:
|
||
|
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
|
||
|
environment:
|
||
|
BACKUP_FILENAME: test.tar.gz
|
||
|
volumes:
|
||
|
- offen_data:/backup/offen_data:ro
|
||
|
- ${LOCAL_DIR:-./local}:/archive
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
|
||
|
offen:
|
||
|
image: offen/offen:latest
|
||
|
labels:
|
||
|
- docker-volume-backup.stop-during-backup=true
|
||
|
deploy:
|
||
|
labels:
|
||
|
- docker-volume-backup.stop-during-backup=true
|
||
|
replicas: 2
|
||
|
volumes:
|
||
|
- offen_data:/var/opt/offen
|
||
|
|
||
|
volumes:
|
||
|
offen_data:
|