Last active
August 12, 2019 07:11
-
-
Save hinorashi/6fd8585e6401d5df4aadc6a30c43c4b2 to your computer and use it in GitHub Desktop.
Local development environment with dockerized kafka
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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