Skip to content

Use the /ok route in the production healthcheck - #79

Merged
ericof merged 1 commit into
19.xfrom
issue-78
Jul 8, 2026
Merged

Use the /ok route in the production healthcheck#79
ericof merged 1 commit into
19.xfrom
issue-78

Conversation

@ericof

@ericof ericof commented Jul 8, 2026

Copy link
Copy Markdown
Member

What

Point the production healthcheck in pnpm/Dockerfile.prod at Volto's /ok liveness route instead of the site root.

Why

The healthcheck previously fetched /, which renders the Plone Site root. That coupled the container's health to backend state and permissions rather than to the frontend process itself. The check reported unhealthy whenever:

  • the backend was unreachable (not yet up, restarting, or misconfigured), or
  • the Plone Site view permission blocked anonymous access (non-2xx on /).

In both cases the Volto/Express process was running fine, yet the container was marked unhealthy — causing false failures and unwanted orchestrator restarts.

/ok is served directly by the frontend and returns 200 OK without proxying to the backend, so the healthcheck now reflects the actual state of the frontend process.

Changes

  • Healthcheck now requests http://127.0.0.1:$LISTEN_PORT/ok.
  • Minor: wrapped the corepack install in a heredoc RUN for consistency with the busybox block above (no functional change).

Closes #78

The healthcheck fetched the site root, coupling container health to
backend availability and the Plone Site view permission. Point it at
Volto's /ok liveness route, which is served by the frontend and does
not proxy to the backend.

Also wrap the corepack install in a heredoc RUN for consistency with
the busybox block above.

Closes #78
@ericof
ericof requested a review from sneridagh July 8, 2026 13:27
Comment thread pnpm/Dockerfile.prod
RUN <<EOT
set -e
npm i -g corepack@latest && corepack enable
EOT

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.

I don't see the point of this change when it is a one-line command.

@ericof
ericof merged commit cbd7491 into 19.x Jul 8, 2026
3 checks passed
@ericof
ericof deleted the issue-78 branch July 8, 2026 22:15
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.

Use the /ok route in the healthcheck

2 participants