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
Build and Push Docker Image / build (push) Successful in 24s
This commit is contained in:
+1
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user