Verbessere Docker-Migration: Entrypoint mit Baseline-Fallback und aktualisiere baseline-migrations.sh

This commit is contained in:
Hördle Bot
2025-11-28 15:53:01 +01:00
parent d874682764
commit 794e3fd74a
3 changed files with 22 additions and 7 deletions

View File

@@ -37,6 +37,4 @@ services:
timeout: 10s
retries: 3
start_period: 40s
# Run migrations and start server (auto-baseline on first run if needed)
command: >
sh -c "npx prisma migrate deploy || (echo 'Baselining existing database...' && sh scripts/baseline-migrations.sh && npx prisma migrate deploy) && node server.js"
# docker-entrypoint.sh handles migrations and server startup (with baseline fallback)