Add postgres backups for plausible
This commit is contained in:
parent
7c0d78ee9d
commit
4b7830567b
@ -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…
x
Reference in New Issue
Block a user