Skip to content

Instantly share code, notes, and snippets.

@yasinuygun
Created March 18, 2021 04:53
Show Gist options
  • Save yasinuygun/9d23e6c822e45e54f253dca010db0b5d to your computer and use it in GitHub Desktop.
Save yasinuygun/9d23e6c822e45e54f253dca010db0b5d to your computer and use it in GitHub Desktop.
docker-compose kafka
version: '3.9'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_ADVERTISED_HOST_NAME: localhost
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment