We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93676d7 commit 2d9a40bCopy full SHA for 2d9a40b
healthcheck.sh
@@ -1,3 +1,7 @@
1
#!/bin/bash
2
3
-nc -z localhost "$HAPROXY_PORT" || exit 1
+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