Skip to content

Instantly share code, notes, and snippets.

@gnschenker
Created October 1, 2019 12:58
Show Gist options
  • Save gnschenker/06449141957aa5c67050a9d1d45c7187 to your computer and use it in GitHub Desktop.
Save gnschenker/06449141957aa5c67050a9d1d45c7187 to your computer and use it in GitHub Desktop.
docker-compose.yml for Health Checks Sample
version: "2.3"
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.3.0
hostname: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-enterprise-kafka:5.3.0
hostname: kafka
environment:
KAFKA_BROKER_ID: 101
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
tools:
image: confluentinc/cp-enterprise-kafka:5.3.0
hostname: tools
tty: true
command: /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment