mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-14 02:25:49 +01:00
29 lines
665 B
YAML
29 lines
665 B
YAML
# Copyright 2020-2021 - offen.software <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:
|