Skip to content

Commit

Permalink
Force healthcheck to run using ipv4
Browse files Browse the repository at this point in the history
Due to this issue: denoland/deno#5269
Deno is not guaranteed to bind to ipv6 as well as ipv4 when
binding to '0.0.0.0'. Equally it is not guaranteed to bind to ipv4
when binding to '::'. So we have
to bind ipv4 and force the check to be ipv4 inside the
container.

This changes the check to force ipv4.

This appears to manifest only on certain devices (in this case a recent Apple Silicon Mac).
  • Loading branch information
lukaso committed Jul 23, 2024
1 parent 3c167b9 commit 2e47743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/project_template/v1/.hiphops/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
entrypoint: "sh"
command: ["/hiphops/watch.sh"]
healthcheck:
test: ["CMD", "wget", "--spider", "-S", "http://localhost:8080/health"]
test: ["CMD", "wget", "--spider", "-S", "http://127.0.0.1:8080/health"]
interval: 5s
retries: 5
start_period: 1s
Expand Down

0 comments on commit 2e47743

Please sign in to comment.