add ENABLE_BACKUPS label

This commit is contained in:
Moritz 2024-10-22 17:26:10 +02:00
parent df670cea2b
commit 197feb32f3
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ ENABLE_AUTO_UPDATE=true
POST_DEPLOY_CMDS="worker set_admin_pass"
# Example values for post deploy cmds: "worker set_admin_pass|worker apply_blueprints|worker add_applications"
LETS_ENCRYPT_ENV=production
ENABLE_BACKUPS=true
DOMAIN=authentik.example.com
## Domain aliases

View File

@ -145,9 +145,8 @@ services:
- POSTGRES_DB=authentik
deploy:
labels:
backupbot.backup: "true"
backupbot.backup: "${ENABLE_BACKUPS:-true}"
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/backup.sql"
backupbot.backup.volumes.database.path: "backup.sql"
backupbot.backup.volumes.redis: "false"
backupbot.restore.post-hook: '/pg_backup.sh restore'