mirror of
https://github.com/garraflavatra/docker-volume-s3-backup.git
synced 2025-07-16 15:14:06 +00:00
Adapt postgres-baskup-s3 to backup Docker volumes instead of Postgres databases
This commit is contained in:
@ -1,28 +1,19 @@
|
||||
# this file is here to facilitate development/testing
|
||||
# This file is here to facilitate development/testing.
|
||||
# See the readme for a list of configuration options.
|
||||
# Copy the .env.example and add in your S3 credentials.
|
||||
# $ docker compose up -d --build --force-recreate
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
test:
|
||||
build: test_image
|
||||
volumes:
|
||||
- data:/data
|
||||
|
||||
backup:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
ALPINE_VERSION: '3.16'
|
||||
build: .
|
||||
env_file: .env
|
||||
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
|
||||
SCHEDULE: '* * * * *'
|
||||
BACKUP_KEEP_DAYS: 7
|
||||
PASSPHRASE: passphrase
|
||||
S3_PREFIX: backup-test
|
||||
|
Reference in New Issue
Block a user