-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
30 lines (28 loc) · 1.02 KB
/
docker-compose.example.yml
File metadata and controls
30 lines (28 loc) · 1.02 KB
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
version: '2.4'
services:
postgres_backup:
image: nikashitsa/postgres-backup
mem_limit: 50mb # perhaps you need to increase this limit
cpus: 0.5
volumes:
- /postgres-backup/cache:/root/.cache/duplicity
environment:
REMOTE_URL: 's3://s3.eu-central-1.amazonaws.com/postgres-backup/backups'
PARAMS: 'full --volsize=200 --s3-multipart-chunk-size=100'
POSTGRES_DUMP_PARAMS: '-c --if-exists -Fc -d mydatabase'
POSTGRES_RESTORE_PARAMS: '-c --if-exists -d mydatabase'
PGPASSWORD: 'put your value here'
BACKUP_LIFETIME: '30D' # remove old (30 days) backups. Remove this line to keep all backups
BACKUP_TIME: '0 3 * * *' # once per day.
AWS_ACCESS_KEY_ID: 'put your value here'
AWS_SECRET_ACCESS_KEY: 'put your value here'
TELEGRAM_TOKEN: 'put your value here' # optional
TELEGRAM_CHAT_ID: 'put your value here' # optional
links:
- db:postgres
logging:
options:
max-size: '10m'
max-file: '5'
db:
image: postgres:11.1