Files
twenty/packages
sonarly-bot fb5e6b1021 fix(docker): increase server healthcheck startup tolerance
https://sonarly.com/issue/41408?type=bug

Fresh self-host installs can fail during bootstrap because Docker marks `server` unhealthy before initialization completes, even though Nest eventually starts successfully.

Fix: Implemented a startup-tolerance fix in the self-host docker compose path by increasing the server healthcheck grace budget where the failure occurs.

Changes made:
- Updated `server` healthcheck in `packages/twenty-docker/docker-compose.yml`:
  - added `start_period: 90s`
  - increased `retries` from `20` to `24`

Why:
- Fresh installs can take longer during first bootstrap (migrations/init/registration). Adding a start period plus additional retries prevents Docker from marking the container unhealthy before the app is actually ready. This targets the exact failure mode (`server` unhealthy during first boot) in the right layer (docker compose runtime health policy).

Authored by Sonarly by autonomous analysis (run 47223).
2026-05-29 05:10:19 +00:00
..
2026-05-27 14:33:57 +02:00