How to add health-check for kafka in docker-compose
I need to add a health-check for the kafka service in docker-compose. kafka: image: bitnami/kafka:3.6.1 restart: always container_name: kafka ports: - '9092:9092' volumes: - 'kafka_data:/bitnami/kafka' environment: ALLOW_PLAINTEXT_LISTENER: yes KAFKA_ENABLE_KRAFT: yes KAFKA_CFG_PROCESS_ROLES: controller,broker KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER KAFKA_CFG_NODE_ID: 0 KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka:9093 KAFKA_CFG_DELETE_TOPIC_ENABLE: 'true'…