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

28 lines
966 B
YAML
Raw Normal View History

2023-12-26 21:56:05 +01:00
services:
2023-12-27 06:59:17 +01:00
pg-bkup:
2024-08-03 00:49:14 +02:00
# In production, it is advised to lock your image tag to a proper
# release version instead of using `latest`.
# Check https://github.com/jkaninda/pg-bkup/releases
# for a list of available releases.
2023-12-26 21:56:05 +01:00
image: jkaninda/pg-bkup
container_name: pg-bkup
2024-08-10 09:39:50 +02:00
command: backup --storage s3 -d my-database"
2023-12-26 21:56:05 +01:00
environment:
- DB_PORT=5432
2024-08-03 00:49:14 +02:00
- DB_HOST=postgres
- DB_NAME=database
- DB_USERNAME=username
- DB_PASSWORD=password
## AWS configurations
- AWS_S3_ENDPOINT=https://s3.amazonaws.com
- AWS_S3_BUCKET_NAME=backup
- AWS_REGION="us-west-2"
- AWS_ACCESS_KEY=xxxx
- AWS_SECRET_KEY=xxxxx
## In case you are using S3 alternative such as Minio and your Minio instance is not secured, you change it to true
- AWS_DISABLE_SSL="false"
# pg-bkup container must be connected to the same network with your database
networks:
- web
networks:
web: