Skip to content

Commit

Permalink
Merge pull request #295 from maxekman/fix/kafka-docker-images
Browse files Browse the repository at this point in the history
Fix / Use Bitnami images for Kafka/Zookeeper
  • Loading branch information
maxekman authored Feb 1, 2021
2 parents 6a41c92 + 9e32d5c commit f3c0cdd
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 f3c0cdd

Please sign in to comment.