-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
90 lines (87 loc) · 2.82 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '2.1'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:2.11-0.11.0.2
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "hyena:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
hyena1:
image: infinivision/hyena
depends_on:
- kafka
ports:
- "1529:9529"
- "1527:1527"
command:
- --addr=hyena1:1527
- --addr-raft=hyena1:9528
- --prophet-name=p1
- --prophet-addr=hyena1:9529
- --prophet-addr-client=http://hyena1:2371,http://hyena2:2371,http://hyena3:2371
- --prophet-urls-client=http://0.0.0.0:2371
- --prophet-urls-advertise-client=http://hyena1:2371
- --prophet-urls-peer=http://0.0.0.0:2381
- --prophet-urls-advertise-peer=http://hyena1:2381
- --prophet-initial-cluster=p1=http://hyena1:2381,p2=http://hyena2:2381,p3=http://hyena3:2381
- --prophet-storage=true
- --rack=rack-1
- --mq-addr=kafka:9092
- --mq-topic=hyena
- --mq-group=hyena
hyena2:
image: infinivision/hyena
depends_on:
- kafka
ports:
- "2529:9529"
- "2527:2527"
command:
- --addr=hyena2:2527
- --addr-raft=hyena2:9528
- --prophet-name=p2
- --prophet-addr=hyena2:9529
- --prophet-addr-client=http://hyena1:2371,http://hyena2:2371,http://hyena3:2371
- --prophet-urls-client=http://0.0.0.0:2371
- --prophet-urls-advertise-client=http://hyena2:2371
- --prophet-urls-peer=http://0.0.0.0:2381
- --prophet-urls-advertise-peer=http://hyena2:2381
- --prophet-initial-cluster=p1=http://hyena1:2381,p2=http://hyena2:2381,p3=http://hyena3:2381
- --prophet-storage=true
- --rack=rack-2
- --mq-addr=kafka:9092
- --mq-topic=hyena
- --mq-group=hyena
hyena3:
image: infinivision/hyena
depends_on:
- kafka
ports:
- "3529:9529"
- "3527:3527"
command:
- --addr=hyena3:3527
- --addr-raft=hyena3:9528
- --prophet-name=p3
- --prophet-addr=hyena3:9529
- --prophet-addr-client=http://hyena1:2371,http://hyena2:2371,http://hyena3:2371
- --prophet-urls-client=http://0.0.0.0:2371
- --prophet-urls-advertise-client=http://hyena3:2371
- --prophet-urls-peer=http://0.0.0.0:2381
- --prophet-urls-advertise-peer=http://hyena3:2381
- --prophet-initial-cluster=p1=http://hyena1:2381,p2=http://hyena2:2381,p3=http://hyena3:2381
- --prophet-storage=true
- --rack=rack-3
- --mq-addr=kafka:9092
- --mq-topic=hyena
- --mq-group=hyena