mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-23 17:30:20 +01:00
27 lines
649 B
YAML
27 lines
649 B
YAML
# Copyright 2020-2021 - offen.software <hioffen@posteo.de>
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
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:
|