Skip to content

Fix docker healthcheck - #2461

Merged
lancepioch merged 1 commit into
mainfrom
docker/health
Aug 13, 2026
Merged

Fix docker healthcheck#2461
lancepioch merged 1 commit into
mainfrom
docker/health

Conversation

@lancepioch

Copy link
Copy Markdown
Member

The SKIP_CADDY check in healthcheck.sh was invalid syntax, so the curl check against /up never actually ran and only php-fpm was being checked. Fixed the condition and bumped the check interval so a dead panel gets noticed in seconds instead of minutes.

The condition '[ ${SKIP_CADDY} ! "true" ]' is invalid test syntax and
evaluated false in every configuration, so the curl check against /up
never ran and only php-fpm's FCGI socket was verified. A wedged Caddy or
fatally erroring app still reported healthy.

Also probe every 30s instead of 5m so failures are detected promptly, and
raise start-period to 2m since boot runs migrations and filament:optimize.
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8e95f347-d366-4a9b-9e1d-a6977f979254

📥 Commits

Reviewing files that changed from the base of the PR and between 21d125d and 7a41804.

📒 Files selected for processing (3)
  • Dockerfile
  • Dockerfile.dev
  • docker/healthcheck.sh

📝 Walkthrough

Walkthrough

Changes

The Docker healthcheck script now handles SKIP_CADDY explicitly, uses stricter curl behavior, and preserves PHP-FPM startup. Production and development image healthcheck timing parameters were updated.

Docker healthchecks

Layer / File(s) Summary
Healthcheck script behavior
docker/healthcheck.sh
SKIP_CADDY defaults to "false" and uses quoted comparison; the Caddy probe uses curl -sf, while cgi-fcgi startup and exit 0 remain unchanged.
Image healthcheck timing
Dockerfile, Dockerfile.dev
Healthcheck intervals and startup periods were updated, with timeout and three retries retained as specified per image.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change to the Docker healthcheck.
Description check ✅ Passed The description matches the changes by fixing the SKIP_CADDY condition and adjusting the healthcheck interval.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@parkervcp parkervcp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lancepioch
lancepioch merged commit 9faa3d3 into main Aug 13, 2026
16 checks passed
@lancepioch
lancepioch deleted the docker/health branch August 13, 2026 20:17
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants