forked from Mongey/terraform-provider-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
38 lines (38 loc) · 902 Bytes
/
docker-compose.yaml
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
---
version: "3.2"
services:
kafka1:
build:
context: .
dockerfile: Dockerfile.kafka
args:
broker_id: 1
listener_host: kafka1
listener_port: 9092
environment:
CLUSTER_ID: "MkU3OEVBNTcwNTJENDM2Qk"
KAFKA_LISTENERS: INTERNAL_SSL://kafka1:9090,EXTERNAL_SSL://kafka1:9092,CONTROLLER://kafka1:9093
ports:
- "9092:9092"
kafka2:
build:
context: .
dockerfile: Dockerfile.kafka
args:
broker_id: 2
listener_host: kafka2
listener_port: 9092
environment:
CLUSTER_ID: "MkU3OEVBNTcwNTJENDM2Qk"
KAFKA_PROCESS_ROLES: broker
kafka3:
build:
context: .
dockerfile: Dockerfile.kafka
args:
broker_id: 3
listener_host: kafka3
listener_port: 9092
environment:
CLUSTER_ID: "MkU3OEVBNTcwNTJENDM2Qk"
KAFKA_PROCESS_ROLES: broker