feat: robust automatic DB migration for Docker deployments
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 44s

Backup before migration (pg_dump/SQLite copy), DB connection wait with
retries, idempotent prisma migrate deploy, old backup cleanup (keep 5),
and server refuses to start if migration fails.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 21:30:45 +02:00
parent 69ea064ca8
commit 39c705592a
30 changed files with 181 additions and 8064 deletions

View File

@@ -41,6 +41,7 @@ services:
- NEXT_TELEMETRY_DISABLED=1
volumes:
- uploads-data:/app/public/uploads
- backup-data:/app/data/backups
depends_on:
postgres:
condition: service_healthy
@@ -136,6 +137,8 @@ volumes:
driver: local
uploads-data:
driver: local
backup-data:
driver: local
ollama-data:
driver: local