Created
April 24, 2020 02:42
-
-
Save shinux/a9b973aea485be98174fd65942bcaa68 to your computer and use it in GitHub Desktop.
kafka & zookeeper docker compose
This file contains 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: '2' | |
services: | |
zookeeper: | |
image: wurstmeister/zookeeper | |
ports: | |
- "2181:2181" | |
kafka: | |
build: . | |
ports: | |
- "9092:9092" | |
environment: | |
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1 | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ports
: should be9092:9092