Skip to content

Commit 9954e19

Browse files
committed
healcheck host environment variable
1 parent 040ce5f commit 9954e19

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

integration-test/integration_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ import (
2020

2121
const (
2222
// Attempts connection
23-
host = 127.0.0.1:8080"
23+
host = readPrefixedEnv("HEALTHCHECK_HOST")
24+
if host == "" {
25+
host = "app:8080"
26+
}
27+
2428
healthPath = "http://" + host + "/healthcheck"
2529
attempts = 20
2630

0 commit comments

Comments
 (0)