mirror of
https://github.com/netdata/netdata.git
synced 2025-04-06 06:25:32 +00:00
fix: use NETDATA_LISTENER_PORT in docker healtcheck (#12676)
This commit is contained in:
parent
0fe9363785
commit
9d13da121c
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
if [ -z "${NETDATA_HEALTHCHECK_TARGET}" ] ; then
|
if [ -z "${NETDATA_HEALTHCHECK_TARGET}" ] ; then
|
||||||
# If users didn't request something else, query `/api/v1/info`.
|
# If users didn't request something else, query `/api/v1/info`.
|
||||||
NETDATA_HEALTHCHECK_TARGET="http://localhost:19999/api/v1/info"
|
PORT=${NETDATA_LISTENER_PORT:-19999}
|
||||||
|
NETDATA_HEALTHCHECK_TARGET="http://localhost:${PORT}/api/v1/info"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${NETDATA_HEALTHCHECK_TARGET}" in
|
case "${NETDATA_HEALTHCHECK_TARGET}" in
|
||||||
|
|
Loading…
Add table
Reference in a new issue