Files
pg-bkup/examples/docker-compose.s3.yaml

21 lines
549 B
YAML
Raw Normal View History

2023-12-26 21:56:05 +01:00
version: "3"
services:
2023-12-27 06:59:17 +01:00
pg-bkup:
2023-12-26 21:56:05 +01:00
image: jkaninda/pg-bkup
container_name: pg-bkup
privileged: true
devices:
- "/dev/fuse"
command:
- /bin/sh
- -c
2024-01-20 14:37:21 +01:00
- pg-bkup backup --storage s3 --path /mys3_custom_path --dbname database_name
2023-12-26 21:56:05 +01:00
environment:
- DB_PORT=5432
2023-12-27 06:59:17 +01:00
- DB_HOST=postgress
2023-12-26 21:56:05 +01:00
- DB_USERNAME=userName
- DB_PASSWORD=${DB_PASSWORD}
- ACCESS_KEY=${ACCESS_KEY}
- SECRET_KEY=${SECRET_KEY}
- BUCKET_NAME=${BUCKET_NAME}
2023-12-26 21:56:05 +01:00
- S3_ENDPOINT=https://s3.us-west-2.amazonaws.com