Skip to content

Add health check to Directus service in Docker Compose example#615

Open
mvanhorn wants to merge 1 commit intodirectus:mainfrom
mvanhorn:docs/add-directus-health-check
Open

Add health check to Directus service in Docker Compose example#615
mvanhorn wants to merge 1 commit intodirectus:mainfrom
mvanhorn:docs/add-directus-health-check

Conversation

@mvanhorn
Copy link
Copy Markdown

Adds a healthcheck to the Directus service in the Docker Compose example and a short section explaining the two health endpoints.

The compose example already had health checks for Postgres and Redis but not for Directus itself. Other containers in the stack can now use depends_on: { directus: { condition: service_healthy } } to wait for Directus.

Also documents the difference between /server/health (checks dependencies) and /server/ping (HTTP-only), based on the discussion in #331.

Fixes #331

This contribution was developed with AI assistance (Claude Code).

Add a healthcheck configuration to the directus service block and a
section explaining the /server/health and /server/ping endpoints. This
helps users who run other containers that need to wait for Directus.

Fixes directus#331
@mvanhorn mvanhorn requested a review from a team as a code owner March 31, 2026 07:50
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

@mvanhorn is attempting to deploy a commit to the Directus Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add Health Check Example for Self-Hosted Directus in Docker

1 participant