digitaldemocratic/docker-compose-parts/backup.yml

27 lines
807 B
YAML
Raw Normal View History

2021-05-19 19:30:24 +02:00
version: '3.7'
services:
dd-backups:
container_name: dd-backups
image: prodrigestivill/postgres-backup-local
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ${BACKUP_FOLDER}/sso:/backups
# links:
# - ${KEYCLOAK_DB_ADDR}:${KEYCLOAK_DB_ADDR}
# depends_on:
# - ${KEYCLOAK_DB_ADDR}
environment:
- TZ="Europe/Madrid"
- POSTGRES_HOST=${KEYCLOAK_DB_ADDR}
- POSTGRES_DB=${KEYCLOAK_DB_DATABASE},moodle,nextcloud
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_EXTRA_OPTS=-Z9 --schema=public --blobs
- SCHEDULE=@every 0h30m00s
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=81
networks:
- isard_net