Skip to content

fix: probe Docker health through the readiness endpoint - #23

Merged
isthatpratham merged 1 commit into
mainfrom
fix/docker-healthcheck-readiness
Aug 30, 2026
Merged

isthatpratham merged 1 commit into
mainfrom
fix/docker-healthcheck-readiness

Conversation

@isthatpratham

Copy link
Copy Markdown
Owner

Summary

  • Docker HEALTHCHECK and Compose healthcheck now call GET /api/ready
  • A container that is listening but cannot use SQLite or write uploads is marked unhealthy
  • GET /api/health remains a cheap liveness probe

Testing

  • npm test -- src/__tests__/health.test.ts — 5 tests passed

Mark the container unhealthy when SQLite or the upload directory cannot serve requests, instead of only checking that the process is listening.
@isthatpratham
isthatpratham merged commit c730883 into main Aug 30, 2026
1 check passed
@isthatpratham
isthatpratham deleted the fix/docker-healthcheck-readiness branch August 30, 2026 23:37
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