Skip to content

Commit

Permalink
Use wget for healthcheck
Browse files Browse the repository at this point in the history
curl is not present by default on alpine
  • Loading branch information
pkqk committed Sep 21, 2022
1 parent f852508 commit 8c8f08f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ services:
build:
context: examples/gqlgen-service
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
test: wget -qO - http://localhost:8080/health
interval: 5s
timeout: 1s
retries: 5
expose:
- 8080
gophers-server:
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
test: wget -qO - http://localhost:8080/health
interval: 5s
timeout: 1s
retries: 5
Expand All @@ -22,7 +22,7 @@ services:
- 8080
nodejs-server:
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
test: wget -qO - http://localhost:8080/health
interval: 5s
timeout: 1s
retries: 5
Expand Down

0 comments on commit 8c8f08f

Please sign in to comment.