Skip to content

Commit

Permalink
update kafka docker compose to work with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Dec 9, 2023
1 parent 97a4902 commit 1d930e9
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions docker/kafka/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,51 @@ services:
image: docker.io/bitnami/zookeeper:3.7
ports:
- "2181:2181"
volumes:
- "/data/databases/kafka/zoo/:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- nucleodb-network
kafka1:
image: bitnami/kafka:latest
ports:
- "9092:9092"
volumes:
- "/data/databases/kafka/1/:/bitnami"
- 29092:29092
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka1:9092
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,EXTERNAL://0.0.0.0:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka1:9092,EXTERNAL://127.0.0.1:29092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
depends_on:
- zookeeper
networks:
- nucleodb-network
kafka2:
image: bitnami/kafka:latest
ports:
- "9093:9093"
volumes:
- "/data/databases/kafka/2/:/bitnami"
- 29093:29093
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_BROKER_ID=2
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka2:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9093,EXTERNAL://0.0.0.0:29093
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka2:9093,EXTERNAL://127.0.0.1:29093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
depends_on:
- zookeeper
networks:
- nucleodb-network
kafka3:
image: bitnami/kafka:latest
ports:
- "9094:9094"
volumes:
- "/data/databases/kafka/3/:/bitnami"
- 29094:29094
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_BROKER_ID=3
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka3:9094
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9094,EXTERNAL://0.0.0.0:29094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka3:9094,EXTERNAL://127.0.0.1:29094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,EXTERNAL:PLAINTEXT
depends_on:
- zookeeper
networks:
Expand Down

0 comments on commit 1d930e9

Please sign in to comment.