forked from coop-cloud/authentik
add backup restore hook
This commit is contained in:
parent
4f8b505e1e
commit
ed41b0f113
@ -146,6 +146,7 @@ services:
|
||||
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: 'psql -U authentik -d postgres -c "DROP DATABASE authentik WITH (FORCE);" && createdb -U authentik authentik && psql -U authentik -d authentik -f /var/lib/postgresql/data/backup.sql'
|
||||
|
||||
redis:
|
||||
image: redis:7.4.0-alpine
|
||||
|
Loading…
x
Reference in New Issue
Block a user