Skip to content

Commit

Permalink
Use Bitnami images for Kafka/Zookeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
maxekman committed Feb 1, 2021
1 parent 6a41c92 commit 9e32d5c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@ services:
- "--host-port=0.0.0.0:8793"

zookeeper:
image: wurstmeister/zookeeper
image: bitnami/zookeeper:3.6.2
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes

kafka:
image: wurstmeister/kafka
image: bitnami/kafka:2.7.0
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_HOST_NAME: localhost
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- KAFKA_BROKER_ID=1
- KAFKA_LISTENERS=PLAINTEXT://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes

0 comments on commit 9e32d5c

Please sign in to comment.