-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
36 lines (34 loc) · 956 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# this file is here to facilitate development/testing
# $ export BUILDKIT_PROGRESS=plain docker compose build
# $ docker compose up -d --build --force-recreate
services:
postgres:
container_name: postgres-backup-test
image: postgres:16
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- postgres.env
backup:
container_name: cron-remote-backup-test
image: rizl4s/postgres-backup-owncloud:latest
build:
context: .
args:
ALPINE_VERSION: "3.20"
depends_on:
postgres:
condition: service_healthy
env_file:
- pgbackups.env
- postgres.env
volumes:
- ~/.gnupg:/home/pbo/.gnupg
# Example volume if RESTORE_MODE local is used
# Hint: mount always as read only
# - "~/ownCloud/folder_with_backups:/opt/backups:ro"
# Then set env var like this SHARE_PATH=/opt/backups