mirror of
https://github.com/whyour/qinglong.git
synced 2026-03-29 19:11:02 +08:00
fix: use QlPort in health check only for host network mode
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
390cef180d
commit
82329ae60f
|
|
@ -84,6 +84,6 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
|
||||||
WORKDIR ${QL_DIR}
|
WORKDIR ${QL_DIR}
|
||||||
|
|
||||||
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
||||||
CMD curl -sf --noproxy '*' http://127.0.0.1:${QlPort:-5700}/api/health || exit 1
|
CMD if ip link show docker0 > /dev/null 2>&1; then PORT=${QlPort:-5700}; else PORT=5700; fi; curl -sf --noproxy '*' http://127.0.0.1:$PORT/api/health || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,6 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
|
||||||
WORKDIR ${QL_DIR}
|
WORKDIR ${QL_DIR}
|
||||||
|
|
||||||
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
|
||||||
CMD curl -sf --noproxy '*' http://127.0.0.1:${QlPort:-5700}/api/health || exit 1
|
CMD if ip link show docker0 > /dev/null 2>&1; then PORT=${QlPort:-5700}; else PORT=5700; fi; curl -sf --noproxy '*' http://127.0.0.1:$PORT/api/health || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
ENTRYPOINT ["./docker/docker-entrypoint.sh"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user