Fix healthcheck to validate full stack through Nginx
Changed healthcheck from hitting Node.js directly on port 3000/ping to going through Nginx on port 80, ensuring the entire stack is validated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,6 @@ COPY ./examples/ /examples/
|
|||||||
RUN echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab
|
RUN echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
|
||||||
CMD wget --spider -q http://localhost:3000/ping || exit 1
|
CMD wget --spider -q http://localhost/ || exit 1
|
||||||
|
|
||||||
ENTRYPOINT [ "/scripts/entrypoint.sh" ]
|
ENTRYPOINT [ "/scripts/entrypoint.sh" ]
|
||||||
Reference in New Issue
Block a user