fix: restore Mailu SQLite database in place
cc-ci/testme cc-ci: success

This commit is contained in:
notplants
2026-11-02 18:19:56 +00:00
parent fb245e26cd
commit d59ce5ff3a
3 changed files with 31 additions and 1 deletions
+8 -1
View File
@@ -96,7 +96,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "coop-cloud.${STACK_NAME}.version=4.0.0+2024.06.67"
- "coop-cloud.${STACK_NAME}.version=4.0.1+2024.06.67"
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
- "backupbot.backup.volumes.traefik_letsencrypt=false"
- "backupbot.backup.volumes.mailu.path=backup"
@@ -122,9 +122,13 @@ services:
- source: backup_sqlite
target: /usr/local/bin/backup_sqlite.py
mode: 0444
- source: restore_sqlite
target: /usr/local/bin/restore_sqlite.py
mode: 0444
deploy:
labels:
backupbot.backup.pre-hook: "python3 /usr/local/bin/backup_sqlite.py"
backupbot.restore.post-hook: "python3 /usr/local/bin/restore_sqlite.py"
imap:
image: ghcr.io/mailu/dovecot:2024.06.67
@@ -234,6 +238,9 @@ configs:
backup_sqlite:
name: ${STACK_NAME}_backup_sqlite_${BACKUP_SQLITE_VERSION}
file: backup_sqlite.py
restore_sqlite:
name: ${STACK_NAME}_restore_sqlite_${RESTORE_SQLITE_VERSION}
file: restore_sqlite.py
secrets: