Skip to content

Commit

Permalink
use wget for health check instead of unsupported curl
Browse files Browse the repository at this point in the history
  • Loading branch information
ryley-o committed Dec 3, 2024
1 parent 7f71402 commit 063f737
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ services:
ipfs:
image: ipfs/go-ipfs:v0.10.0
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:5001/api/v0/version || sleep 5 && curl -sf http://127.0.0.1:5001/api/v0/version || exit 1"]
interval: 10s
timeout: 5s
retries: 10
test: ["CMD-SHELL", "wget --post-data='' http://127.0.0.1:5001/api/v0/version -O - || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
volumes:
- ipfs:/data/ipfs
postgres:
Expand Down

0 comments on commit 063f737

Please sign in to comment.