46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
zookeeper:
|
|
image: docker.io/bitnami/zookeeper:3.8
|
|
environment:
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
volumes:
|
|
- 'zookeeper_data:/bitnami/zookeeper'
|
|
kafka-0:
|
|
image: docker.io/bitnami/kafka:3.2
|
|
environment:
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
volumes:
|
|
- 'kafka0_data:/bitnami/kafka'
|
|
depends_on:
|
|
- zookeeper
|
|
kafka-1:
|
|
image: docker.io/bitnami/kafka:3.2
|
|
environment:
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
volumes:
|
|
- 'kafka1_data:/bitnami/kafka'
|
|
depends_on:
|
|
- zookeeper
|
|
schema-registry:
|
|
image: docker.io/bitnami/schema-registry:7.1
|
|
ports:
|
|
- '8081:8081'
|
|
depends_on:
|
|
- kafka-0
|
|
- kafka-1
|
|
environment:
|
|
- SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081
|
|
- SCHEMA_REGISTRY_KAFKA_BROKERS=PLAINTEXT://kafka-0:9092,PLAINTEXT://kafka-1:9092
|
|
|
|
volumes:
|
|
zookeeper_data:
|
|
driver: local
|
|
kafka0_data:
|
|
driver: local
|
|
kafka1_data:
|
|
driver: local
|