Skip to content

Instantly share code, notes, and snippets.

@ssi-anik
Created June 27, 2020 17:00
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 ssi-anik/2f15642cba2ac3f1f78a093a548acee1 to your computer and use it in GitHub Desktop.
Save ssi-anik/2f15642cba2ac3f1f78a093a548acee1 to your computer and use it in GitHub Desktop.
docker-compose.yml file for kafka-zookeeper
version: '2'
services:
zookeeper:
image: bitnami/zookeeper:3.6.1
ports:
- 2181:2181
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOO_ENABLE_AUTH=yes
kafka:
image: bitnami/kafka:2.5.0
ports:
- 9092:9092
links:
- zookeeper
environment:
- ALLOW_PLAINTEXT_LISTENER=true
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment