Add some automated postgres backups

This commit is contained in:
Jake Howard 2020-03-30 21:40:04 +01:00
parent 10991def1e
commit 079e58e67b
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 45 additions and 0 deletions

View file

@ -33,6 +33,21 @@ services:
- POSTGRES_PASSWORD=gitea - POSTGRES_PASSWORD=gitea
- POSTGRES_USER=gitea - POSTGRES_USER=gitea
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=gitea
- POSTGRES_USER=gitea
- POSTGRES_DB=gitea
- BACKUP_KEEP_MONTHS=1
- BACKUP_KEEP_WEEKS=1
cgit: cgit:
image: theorangeone/docker-cgit:latest image: theorangeone/docker-cgit:latest
container_name: cgit container_name: cgit

View file

@ -21,3 +21,18 @@ services:
environment: environment:
- POSTGRES_PASSWORD=statping - POSTGRES_PASSWORD=statping
- POSTGRES_USER=statping - POSTGRES_USER=statping
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=statping
- POSTGRES_USER=statping
- POSTGRES_DB=statping
- BACKUP_KEEP_MONTHS=1
- BACKUP_KEEP_WEEKS=1

View file

@ -25,3 +25,18 @@ services:
environment: environment:
- POSTGRES_PASSWORD=tt-rss - POSTGRES_PASSWORD=tt-rss
- POSTGRES_USER=tt-rss - POSTGRES_USER=tt-rss
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=tt-rss
- POSTGRES_USER=tt-rss
- POSTGRES_DB=tt-rss
- BACKUP_KEEP_MONTHS=1
- BACKUP_KEEP_WEEKS=1