Skip to content

Instantly share code, notes, and snippets.

@avilior
Created December 9, 2019 10:44
Show Gist options
  • Save avilior/0d3ca845cb9f8f5d7e37ce5ebf48f160 to your computer and use it in GitHub Desktop.
Save avilior/0d3ca845cb9f8f5d7e37ce5ebf48f160 to your computer and use it in GitHub Desktop.
Get Kafka/Zookeeper Bitnami working with Docker For MAC
version: '3.7'
networks:
kafka-net:
driver: bridge
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
# container_name: zookeeper_1
ports:
- "2181:2181"
- "8081:8080"
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
networks:
- kafka-net
kafka:
image: 'bitnami/kafka:latest'
# container_name: kafka_1
ports:
- "9092:9092"
- "29092:29092"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,PLAINTEXT_HOST://:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
depends_on:
- zookeeper
networks:
- kafka-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment