Critical changes for production stability: 1. Add healthchecks to all services: - app: curl to /health endpoint (10s interval, 5s start period) - postgres: pg_isready check (5s interval) - redis: redis-cli ping check (5s interval) 2. Use depends_on with health conditions: - Ensures postgres/redis are fully ready before app starts - Prevents connection errors during startup 3. Remove hardcoded container_name: - Prevents name collisions between deployments - Allows Coolify to manage container names Why this matters: - Without healthchecks: Coolify kills old container → builds new → 502 gap - With healthchecks: Coolify builds new → waits for healthy → kills old → zero downtime 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1.9 KiB
1.9 KiB