Browse Source

fix(docker): use 127.0.0.1 in healthcheck to prevent IPv6 localhost resolution failure

master
mortezaei 2 weeks ago
parent
commit
5921ad7b33
  1. 2
      docker-compose.yml

2
docker-compose.yml

@ -25,7 +25,7 @@ services:
- NEXT_PUBLIC_SECURITY_KEY=t5yugymks5458fd4ghfg6h6fg
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/healthz"]
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/healthz"]
interval: 30s
timeout: 5s
retries: 3

Loading…
Cancel
Save