Skip to content

Commit 69f973a

Browse files
change health check for kafka service (#2371)
Co-authored-by: Hubert Deng <[email protected]>
1 parent cad1deb commit 69f973a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ services:
205205
- "sentry-secrets:/etc/kafka/secrets"
206206
healthcheck:
207207
<<: *healthcheck_defaults
208-
test: ["CMD-SHELL", "nc -z localhost 9092"]
208+
test: ["CMD-SHELL", "/usr/bin/kafka-topics --bootstrap-server kafka:9092 --list"]
209209
interval: 10s
210210
timeout: 10s
211211
retries: 30

0 commit comments

Comments
 (0)