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"]