Update docker-compose.yml

- $BACKUP_TIME added
- timed backup as command
This commit is contained in:
Jensa 2023-05-03 17:25:10 +02:00 committed by GitHub
parent 4e49a5298c
commit 0cebe8df1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,16 +4,17 @@ version: '3'
services:
zammad-backup:
command: ["zammad-backup"]
command: ["zammad-timed-backup"]
depends_on:
- zammad-railsserver
- zammad-postgresql
entrypoint: /usr/local/bin/backup.sh
environment:
- BACKUP_SLEEP=86400
- BACKUP_TIME=03:00
- HOLD_DAYS=10
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASSWORD=${POSTGRES_PASS}
- TZ=Europe/Berlin
image: postgres:${POSTGRES_VERSION}
restart: ${RESTART}
volumes: