Skip to content

Instantly share code, notes, and snippets.

@dthtvwls
Created May 24, 2018 11:04
Show Gist options
  • Save dthtvwls/156e81619c1ce43d53585691c59d826f to your computer and use it in GitHub Desktop.
Save dthtvwls/156e81619c1ce43d53585691c59d826f to your computer and use it in GitHub Desktop.
Docker Kafka
version: "3"
services:
kafka:
image: confluentinc/cp-kafka
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
ports:
- "9092:9092"
zookeeper:
image: confluentinc/cp-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment