mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-14 02:25:49 +01:00
Frederik Ring
0f224e4fb8
* Do not await containers when there was an error on scaling * Add test case for usage with socket proxy * Add documentation on required permissions for docker-socket-proxy * Add full list of used Docker APIs to doc * CONTAINER_START and CONTAINER_STOP is not needed
37 lines
899 B
YAML
37 lines
899 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
|
|
BACKUP_CRON_EXPRESSION: 0 0 5 31 2 ?
|
|
DOCKER_HOST: tcp://docker_socket_proxy:2375
|
|
volumes:
|
|
- pg_data:/backup/pg_data:ro
|
|
- ${LOCAL_DIR:-local}:/archive
|
|
|
|
docker_socket_proxy:
|
|
image: tecnativa/docker-socket-proxy:0.1
|
|
environment:
|
|
INFO: ${ALLOW_INFO:-1}
|
|
CONTAINERS: ${ALLOW_CONTAINERS:-1}
|
|
POST: ${ALLOW_POST:-1}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
pg:
|
|
image: postgres:14-alpine
|
|
environment:
|
|
POSTGRES_PASSWORD: example
|
|
volumes:
|
|
- pg_data:/var/lib/postgresql/data
|
|
labels:
|
|
- docker-volume-backup.stop-during-backup=true
|
|
|
|
volumes:
|
|
pg_data:
|