Add postgres backups for plausible
This commit is contained in:
parent
7c0d78ee9d
commit
4b7830567b
1 changed files with 15 additions and 0 deletions
|
@ -45,3 +45,18 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=plausible
|
- POSTGRES_PASSWORD=plausible
|
||||||
- POSTGRES_USER=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
|
||||||
|
|
Loading…
Reference in a new issue