From 5df4f8ce630257bdc440e3ae4b57e22d1c8a4fc3 Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 28 Jul 2026 16:26:50 -0500 Subject: [PATCH] fix(healthcheck): probe /healthz on 127.0.0.1 (/api/health is the records API, 404s at root) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6e1e0c7..c0b3838 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,7 +61,7 @@ VOLUME ["/app/data", "/app/uploads", "/app/static"] # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ - CMD node -e "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" + CMD node -e "require('http').get('http://127.0.0.1:3000/healthz', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)}).on('error', () => process.exit(1))" # Start the application CMD ["node", "server/index.js"]