2021-08-11 15:47:18 -07:00
|
|
|
---
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
zookeeper:
|
2022-07-16 17:38:33 -07:00
|
|
|
image: confluentinc/cp-zookeeper:7.2.0
|
2021-08-11 15:47:18 -07:00
|
|
|
env_file: zookeeper.env
|
|
|
|
hostname: test_zookeeper
|
|
|
|
ports:
|
2023-04-04 18:38:30 +05:30
|
|
|
- "52181"
|
2021-08-11 15:47:18 -07:00
|
|
|
volumes:
|
|
|
|
- test_zkdata:/var/opt/zookeeper
|
|
|
|
|
|
|
|
broker:
|
2022-07-16 17:38:33 -07:00
|
|
|
image: confluentinc/cp-kafka:7.2.0
|
2021-08-11 15:47:18 -07:00
|
|
|
env_file: broker.env
|
|
|
|
hostname: test_broker
|
|
|
|
container_name: test_broker
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
ports:
|
2023-04-04 18:38:30 +05:30
|
|
|
- "29092:29092"
|
2021-08-11 15:47:18 -07:00
|
|
|
|
|
|
|
schema-registry:
|
2022-07-16 17:38:33 -07:00
|
|
|
image: confluentinc/cp-schema-registry:7.2.0
|
2022-10-13 19:49:50 +00:00
|
|
|
restart: unless-stopped
|
2021-08-11 15:47:18 -07:00
|
|
|
env_file: schema-registry.env
|
2021-10-12 18:50:39 -07:00
|
|
|
container_name: test_schema_registry
|
2021-08-11 15:47:18 -07:00
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- broker
|
|
|
|
ports:
|
2023-04-04 18:38:30 +05:30
|
|
|
- "28081:8081"
|
2021-08-11 15:47:18 -07:00
|
|
|
|
|
|
|
volumes:
|
2022-10-13 19:49:50 +00:00
|
|
|
test_zkdata:
|