1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-07-18 15:54:06 +00:00

add docker-compose.yaml for development/testing

This commit is contained in:
Elliott Shugerman
2022-07-03 13:43:54 -04:00
parent 0874c2abfb
commit 3f82b5fc12
5 changed files with 41 additions and 1 deletions

28
docker-compose.yaml Normal file
View File

@ -0,0 +1,28 @@
# this file is here to facilitate development/testing
# $ docker compose up -d --build --force-recreate
services:
postgres:
image: postgres:14
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
backup:
build:
context: .
args:
ALPINE_VERSION: '3.16'
environment:
SCHEDULE: '@weekly' # optional
BACKUP_KEEP_DAYS: 7 # optional
PASSPHRASE: passphrase # optional
S3_REGION:
S3_ACCESS_KEY_ID:
S3_SECRET_ACCESS_KEY:
S3_BUCKET:
S3_PREFIX: backup
POSTGRES_HOST: postgres
POSTGRES_DATABASE: postgres
POSTGRES_USER: user
POSTGRES_PASSWORD: password