fix(docker): correct healthcheck commands for Redpanda and ClickHouse in docker-compose.yml
This commit is contained in:
@@ -19,7 +19,7 @@ services:
|
|||||||
- "9092:9092"
|
- "9092:9092"
|
||||||
- "9644:9644"
|
- "9644:9644"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "rpk cluster health --brokers=localhost:9092 | grep -q 'Healthy:.*true' || exit 1"]
|
test: ["CMD", "rpk", "cluster", "health"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 12
|
retries: 12
|
||||||
@@ -56,7 +56,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./docker/clickhouse/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
- ./docker/clickhouse/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"]
|
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user