-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (50 loc) · 1.1 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
version: "3.5"
services:
zookeeper:
build: .
image: kafka-ubuntu:latest
container_name: zookeeper
command: ./run_start_zookeeper.sh
ports:
- 2181:2180
environment:
ZOOKEEPER_HOST: "zookeeper"
kafka1:
image: kafka-ubuntu:latest
container_name: kafka1
command: ./run_start_server.sh
#restart: unless-stopped
depends_on:
- zookeeper
ports:
- "29092:29092"
environment:
ZOOKEEPER_HOST: "zookeeper"
ZOOKEEPER_PORT: "2181"
BROKER_ID: 1
kafka2:
image: kafka-ubuntu:latest
container_name: kafka2
command: ./run_start_server.sh
#restart: unless-stopped
depends_on:
- zookeeper
ports:
- "29093:29092"
environment:
ZOOKEEPER_HOST: "zookeeper"
ZOOKEEPER_PORT: "2181"
BROKER_ID: 2
kafka3:
image: kafka-ubuntu:latest
container_name: kafka3
command: ./run_start_server.sh
#restart: unless-stopped
depends_on:
- zookeeper
ports:
- "29094:29092"
environment:
ZOOKEEPER_HOST: "zookeeper"
ZOOKEEPER_PORT: "2181"
BROKER_ID: 3