Skip to content

Commit 390cef1

Browse files
Copilotwhyour
andcommitted
fix: use QlPort env variable in health check with fallback to default 5700
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
1 parent 88ac71b commit 390cef1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docker/310.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
8484
WORKDIR ${QL_DIR}
8585

8686
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
87-
CMD curl -sf --noproxy '*' http://127.0.0.1:5700/api/health || exit 1
87+
CMD curl -sf --noproxy '*' http://127.0.0.1:${QlPort:-5700}/api/health || exit 1
8888

8989
ENTRYPOINT ["./docker/docker-entrypoint.sh"]

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/
8484
WORKDIR ${QL_DIR}
8585

8686
HEALTHCHECK --interval=5s --timeout=2s --retries=20 \
87-
CMD curl -sf --noproxy '*' http://127.0.0.1:5700/api/health || exit 1
87+
CMD curl -sf --noproxy '*' http://127.0.0.1:${QlPort:-5700}/api/health || exit 1
8888

8989
ENTRYPOINT ["./docker/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)