Skip to content

fix(docker): increase health check start period to 90s#86

Merged
maartenbode merged 1 commit intomainfrom
fix/docker-health-check-start-period
Mar 31, 2026
Merged

fix(docker): increase health check start period to 90s#86
maartenbode merged 1 commit intomainfrom
fix/docker-health-check-start-period

Conversation

@maartenbode
Copy link
Copy Markdown
Member

@maartenbode maartenbode commented Mar 31, 2026

Summary

The app container's entrypoint runs database migrations and cache warming before FrankenPHP starts, leaving the /health endpoint unreachable during initialization. With a start_period of only 30s, slower environments exhaust the grace period and retries (~120s total), causing Docker to mark the container as unhealthy.

Increases start_period from 30s to 90s in the Dockerfile and both Compose files, giving the entrypoint enough headroom for migrations and cache warming before health check failures start counting.

Reported by a user running Docker where the app container consistently failed at ~127s with container pricore-app is unhealthy.

@maartenbode maartenbode merged commit 656f871 into main Mar 31, 2026
2 checks passed
@maartenbode maartenbode deleted the fix/docker-health-check-start-period branch March 31, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant