Add postgres backups for plausible

This commit is contained in:
Jake Howard 2020-08-04 19:49:21 +01:00
parent 7c0d78ee9d
commit 4b7830567b
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -45,3 +45,18 @@ services:
environment:
- POSTGRES_PASSWORD=plausible
- POSTGRES_USER=plausible
db-backups:
image: prodrigestivill/postgres-backup-local:12-alpine
restart: unless-stopped
volumes:
- /scratch/db-backups:/backups
depends_on:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_PASSWORD=plausible
- POSTGRES_USER=plausible
- POSTGRES_DB=plausible
- BACKUP_KEEP_MONTHS=1
- BACKUP_KEEP_WEEKS=1