-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
74 lines (72 loc) · 2.28 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '2.2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.2.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka-1:
image: confluentinc/cp-kafka:5.2.1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper
KAFKA_ADVERTISED_LISTENERS: HOST://127.0.0.1:9092,PLAINTEXT://kafka-1:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: HOST:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ports:
- 127.0.0.1:9092:9092
kafka-2:
image: confluentinc/cp-kafka:5.2.1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 2
KAFKA_ZOOKEEPER_CONNECT: zookeeper
KAFKA_ADVERTISED_LISTENERS: HOST://127.0.0.1:9093,PLAINTEXT://kafka-2:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: HOST:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ports:
- 127.0.0.1:9093:9093
kafka-3:
image: confluentinc/cp-kafka:5.2.1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 3
KAFKA_ZOOKEEPER_CONNECT: zookeeper
KAFKA_ADVERTISED_LISTENERS: HOST://127.0.0.1:9094,PLAINTEXT://kafka-3:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: HOST:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ports:
- 127.0.0.1:9094:9094
schema-registry:
image: confluentinc/cp-schema-registry:5.2.1
depends_on:
- zookeeper
- kafka-1
- kafka-2
- kafka-3
ports:
- 127.0.0.1:8081:8081
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
# SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: DOCKER://kafka-1:19092
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
ksql-server:
image: confluentinc/cp-ksql-server:5.2.1
depends_on:
- kafka-1
- kafka-2
- kafka-3
- schema-registry
ports:
- 127.0.0.1:8088:8088
environment:
KSQL_BOOTSTRAP_SERVERS: kafka-1:19092
KSQL_LISTENERS: http://0.0.0.0:8088
KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry:8081