Add some automated postgres backups
This commit is contained in:
parent
10991def1e
commit
079e58e67b
3 changed files with 45 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue