Commit 4869b84
Fix ClickHouse health check: use clickhouse-client instead of wget on port 8123
BusyBox wget in the clickhouse alpine image exits 0 even on connection refused,
making the health check always pass (false positive). Additionally, port 8123
(HTTP interface) is not exposed by this image -- only port 9000 (native protocol).
Replace with: clickhouse-client --query "SELECT 1" 2>/dev/null | grep -q "^1"
This correctly exits 1 when the server is unavailable and 0 when ready.
Also halve the interval (30s->15s) and double retries (10->20) so Docker has
more attempts within the same total window before marking the container unhealthy.
Verified locally: container reaches (healthy) status within 35 seconds.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent adc84ed commit 4869b84
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
| 385 | + | |
| 386 | + | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
0 commit comments