Commit a1fc0800 authored by Lokesh Singh's avatar Lokesh Singh

kafka-single-node.yml

parent 764fad6e
version: '2'
services:
#Zookeeper Service.
zookeeper:
image: 'bitnami/zookeeper:latest'
restart: "no"
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
container_name: zookeeper
#Kafka Service
kafka:
image: 'bitnami/kafka:latest'
restart: "no"
ports:
- '9092:9092'
- '29092:29092'
environment:
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=INTERNAL://:29092,EXTERNAL://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=INTERNAL://kafka:29092,EXTERNAL://localhost:9092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- ALLOW_PLAINTEXT_LISTENER=yes
container_name: kafka-broker
depends_on:
- "zookeeper"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment