Skip to content

Commit

Permalink
fix(health): Fix wiremock health check
Browse files Browse the repository at this point in the history
Turns out, there is no CURL :(. This HTTP Client in netcat is something
we will find strange 5 years from now but: It's not stupid if it works
:D

Co-authored-by: Sven Uhlig <[email protected]>
Co-authored-by: Torsten Will <[email protected]>
  • Loading branch information
3 people committed Nov 21, 2024
1 parent d29ad7a commit 9b59201
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ services:
init-wiremock-certs:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/__admin/health"]
test:
[
"CMD-SHELL",
"echo -e 'GET /__admin/health HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' | nc localhost 8080 | grep 'HTTP/1.1 200 OK'",
]
timeout: 1s
start_period: 8s
interval: 1s
Expand Down

0 comments on commit 9b59201

Please sign in to comment.