-
-
Save onuryaz/560a70a0e59ff2cf1329d4c535233619 to your computer and use it in GitHub Desktop.
Dockerise kafka and elasticsearch
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: '2' | |
| services: | |
| zookeeper: | |
| image: wurstmeister/zookeeper | |
| ports: | |
| - "2181:2181" | |
| kafka: | |
| image: wurstmeister/kafka | |
| ports: | |
| - "9092:9092" | |
| environment: | |
| #put your host machine ip address | |
| KAFKA_ADVERTISED_HOST_NAME: <host-ip> | |
| KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| elastic: | |
| image: elasticsearch:7.2.0 | |
| environment: | |
| - discovery.type=single-node | |
| ports: | |
| - "9200:9200" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment