Skip to content

Commit 2d9a40b

Browse files
authored
fix(healthcheck): adjust to use BIND_ADDRESS if it is set (#7)
* fix(healthcheck): adjust to use BIND_ADDRESS if it is set
1 parent 93676d7 commit 2d9a40b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

healthcheck.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22

3-
nc -z localhost "$HAPROXY_PORT" || exit 1
3+
if [ "$BIND_ADDRESS" != "*" ]; then
4+
nc -z "$BIND_ADDRESS" "$HAPROXY_PORT" || exit 1
5+
else
6+
nc -z localhost "$HAPROXY_PORT" || exit 1
7+
fi

0 commit comments

Comments
 (0)