skip to Main Content

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'…

VIEW QUESTION

DOCKER, SPRING, MYSQL ENV error when use docker

I have problem when I use docker compose and connection string i assign in ENV not recognize in spring application.yml this is my docker-compose.yml version: '3' services: mysqldb: image: mysql:8.3.0 ports: - "3307:3306" environment: MYSQL_ROOT_PASSWORD: 23012003aA@ MYSQL_DATABASE: checklist restart: always…

VIEW QUESTION
Back To Top
Search