Skip to content

Instantly share code, notes, and snippets.

@hinorashi
Last active August 12, 2019 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hinorashi/6fd8585e6401d5df4aadc6a30c43c4b2 to your computer and use it in GitHub Desktop.
Save hinorashi/6fd8585e6401d5df4aadc6a30c43c4b2 to your computer and use it in GitHub Desktop.
Local development environment with dockerized kafka
version: '3'
services:
zookeeper:
image: "wurstmeister/zookeeper"
container_name: "zookeeper"
restart: always
ports:
- 2181:2181
kafka:
image: "wurstmeister/kafka"
container_name: "kafka"
restart: always
environment:
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAKFA_BROKER_ID: 1
KAFKA_LISTENERS: "PLAINTEXT://:9092"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://localhost:9092"
ports:
- 9092:9092
depends_on:
- zookeeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment