-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
60 lines (57 loc) · 1.16 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
version: '3.2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
extra_hosts:
- "moby:127.0.0.1"
kafka1:
build:
context: .
dockerfile: Dockerfile.kafka
args:
broker_id: 1
zookeeper_connect: zookeeper:2181
listener_host: kafka1
listener_port: 9092
ports:
- "9092:9092"
depends_on:
- zookeeper
extra_hosts:
- "moby:127.0.0.1"
kafka2:
build:
context: .
dockerfile: Dockerfile.kafka
args:
broker_id: 2
zookeeper_connect: zookeeper:2181
listener_host: kafka2
listener_port: 9093
ports:
- "9093:9092"
depends_on:
- zookeeper
extra_hosts:
- "moby:127.0.0.1"
kafka3:
build:
context: .
dockerfile: Dockerfile.kafka
args:
broker_id: 3
zookeeper_connect: zookeeper:2181
listener_host: kafka3
listener_port: 9094
ports:
- "9094:9092"
depends_on:
- zookeeper
extra_hosts:
- "moby:127.0.0.1"