27 lines
807 B
YAML
27 lines
807 B
YAML
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 |