Fix health check: use wget -qO instead of --spider, increase start_period to 30s
This commit is contained in:
@@ -26,8 +26,8 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|
||||||
HEALTHCHECK --interval=10s --timeout=5s --start-period=15s --retries=3 \
|
HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=3 \
|
||||||
CMD wget --spider -q http://localhost:3001/api/health || exit 1
|
CMD wget -qO /dev/null http://localhost:3001/api/health || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user