fix(healthcheck): probe /healthz on 127.0.0.1 (/api/health is the records API, 404s at root)
Build and Push Docker Image / build (push) Successful in 24s

This commit is contained in:
2026-07-28 16:26:50 -05:00
parent 4e71ec844b
commit 5df4f8ce63
+1 -1
View File
@@ -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"]