Fix health check: use wget -qO instead of --spider, increase start_period to 30s

This commit is contained in:
MayaTheShy
2026-03-22 21:15:43 -04:00
parent 73e157cc13
commit 1b0b1c570d

View File

@@ -26,8 +26,8 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 3001
HEALTHCHECK --interval=10s --timeout=5s --start-period=15s --retries=3 \
CMD wget --spider -q http://localhost:3001/api/health || exit 1
HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=3 \
CMD wget -qO /dev/null http://localhost:3001/api/health || exit 1
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["node", "server.js"]