fix health check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-31 10:16:06 +03:00
parent 8b475c7e2e
commit fdda45da27
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ EXPOSE 4001
# Health check # Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s \ HEALTHCHECK --interval=30s --timeout=3s --start-period=40s \
CMD node -e "require('http').get('http://localhost:4001/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" CMD node -e "require('http').get('http://localhost:4001/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
# Start the application # Start the application
CMD ["node", "dist/main"] CMD ["node", "dist/main"]

View File

@ -52,13 +52,13 @@ spec:
cpu: "500m" cpu: "500m"
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /api/health
port: 4001 port: 4001
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /api/health
port: 4001 port: 4001
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5