Skip to content

Commit 3c7a6dc

Browse files
authored
Merge pull request #195 from grafbase/tomhoule-kmpvqvowlklk
Fix docker compose setup
2 parents 723a812 + 04c94b9 commit 3c7a6dc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

compose.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,11 @@ services:
230230
- ./docker/kafka/config/ssl:/etc/kafka/secrets
231231
restart: unless-stopped
232232
healthcheck:
233-
test: |
234-
nc -z localhost 9092 &&
235-
nc -z localhost 9093 &&
236-
nc -z localhost 9094 &&
237-
nc -z localhost 9095 &&
238-
nc -z localhost 9096 || exit 1
233+
test:
234+
[
235+
"CMD-SHELL",
236+
"kafka-broker-api-versions --bootstrap-server localhost:9092 >/dev/null 2>&1",
237+
]
239238
interval: 30s
240239
timeout: 10s
241240
retries: 10

0 commit comments

Comments
 (0)