-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.pulsar.yml
162 lines (153 loc) · 3.72 KB
/
docker-compose.pulsar.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
version: '2.1'
services:
zoo1:
image: apachepulsar/pulsar:2.4.1
hostname: zoo1
platform: linux/amd64
ports:
- "2181:2181"
environment:
ZK_ID: 1
PULSAR_ZK_CONF: /conf/zookeeper.conf
volumes:
- ./zoo1/data:/pulsar/data/zookeeper/
- ./zoo1/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_zk.sh"
zoo2:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: zoo2
ports:
- "2182:2181"
environment:
ZK_ID: 2
PULSAR_ZK_CONF: /conf/zookeeper.conf
volumes:
volumes:
- ./zoo2/data:/pulsar/data/zookeeper/
- ./zoo2/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_zk.sh"
zoo3:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: zoo3
ports:
- "2183:2181"
environment:
ZK_ID: 3
PULSAR_ZK_CONF: /conf/zookeeper.conf
volumes:
- ./zoo3/data:/pulsar/data/zookeeper/
- ./zoo3/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_zk.sh"
bookie1:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: bookie1
ports:
- "3181:3181"
environment:
BOOKIE_CONF: /conf/bookkeeper.conf
volumes:
- ./bookie1/data:/pulsar/data/bookkeeper/
- ./bookie1/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_mainbk.sh"
depends_on:
- zoo1
- zoo2
- zoo3
bookie2:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: bookie2
ports:
- "3182:3181"
environment:
BOOKIE_CONF: /conf/bookkeeper.conf
volumes:
- ./bookie2/data:/pulsar/data/bookkeeper/
- ./bookie2/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_otherbk.sh"
depends_on:
- bookie1
bookie3:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: bookie3
ports:
- "3183:3181"
environment:
BOOKIE_CONF: /conf/bookkeeper.conf
volumes:
- ./bookie3/data:/pulsar/data/bookkeeper/
- ./bookie3/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_otherbk.sh"
depends_on:
- bookie1
broker1:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: broker1
environment:
PULSAR_BROKER_CONF: /conf/broker.conf
ports:
- "6660:6650"
- "8090:8080"
volumes:
- ./broker1/data:/pulsar/data/broker/
- ./broker1/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_broker.sh"
depends_on:
- bookie1
- bookie2
- bookie3
broker2:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: broker2
environment:
PULSAR_BROKER_CONF: /conf/broker.conf
ports:
- "6661:6650"
- "8091:8080"
volumes:
- ./broker2/data:/pulsar/data/broker/
- ./broker2/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_broker.sh"
depends_on:
- bookie1
- bookie2
- bookie3
pulsar-proxy:
image: apachepulsar/pulsar:2.4.1
platform: linux/amd64
hostname: pulsar-proxy
ports:
- "6650:6650"
- "8080:8080"
environment:
PULSAR_PROXY_CONF: "/conf/proxy.conf"
volumes:
- ./proxy/log/:/pulsar/logs
- ./conf:/conf
- ./scripts:/scripts
command: /bin/bash "/scripts/start_proxy.sh"
depends_on:
- broker1
- broker2