Skip to content

Commit 89b292c

Browse files
authored
Merge pull request #362 from dsgnr/healthcheck_path
Fix issue where localhost would resolve to ipv6 for healthcheck
2 parents 61c7589 + 1469014 commit 89b292c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
ports:
1212
- 8080:80
1313
healthcheck:
14-
test: ["CMD", "wget", "--spider", "-S", "http://localhost"]
14+
test: ["CMD", "wget", "--spider", "-S", "http://127.0.0.1"]
1515
interval: 30s
1616
timeout: 10s
1717
retries: 3
@@ -28,7 +28,7 @@ services:
2828
ports:
2929
- 8000:8000
3030
healthcheck:
31-
test: ["CMD", "wget", "--spider", "-S", "http://localhost:8000/healthz"]
31+
test: ["CMD", "wget", "--spider", "-S", "http://127.0.0.1:8000/healthz"]
3232
interval: 30s
3333
timeout: 10s
3434
retries: 3

0 commit comments

Comments
 (0)