forked from dgraph-io/dgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
173 lines (173 loc) · 4.79 KB
/
docker-compose.yml
File metadata and controls
173 lines (173 loc) · 4.79 KB
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
163
164
165
166
167
168
169
170
171
172
173
# Auto-generated with: [./compose -a 6 -z 3 -j -w]
# and manually edited afterward
#
version: "3.5"
services:
alpha1:
image: dgraph/dgraph:latest
container_name: alpha1
working_dir: /data/alpha1
labels:
cluster: test
ports:
- 8180:8180
- 9180:9180
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha --jaeger.collector=http://jaeger:14268 -o 100 --my=alpha1:7180
--lru_mb=1024 --zero=zero1:5180 --logtostderr -v=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --snapshot_after 100
alpha2:
image: dgraph/dgraph:latest
container_name: alpha2
working_dir: /data/alpha2
depends_on:
- alpha1
labels:
cluster: test
ports:
- 8182:8182
- 9182:9182
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha --jaeger.collector=http://jaeger:14268 -o 102 --my=alpha2:7182
--lru_mb=1024 --zero=zero1:5180 --logtostderr -v=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --snapshot_after 100
alpha3:
image: dgraph/dgraph:latest
container_name: alpha3
working_dir: /data/alpha3
depends_on:
- alpha2
labels:
cluster: test
ports:
- 8183:8183
- 9183:9183
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha --jaeger.collector=http://jaeger:14268 -o 103 --my=alpha3:7183
--lru_mb=1024 --zero=zero1:5180 --logtostderr -v=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --snapshot_after 100
alpha4:
image: dgraph/dgraph:latest
container_name: alpha4
working_dir: /data/alpha4
depends_on:
- alpha3
labels:
cluster: test
ports:
- 8184:8184
- 9184:9184
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha --jaeger.collector=http://jaeger:14268 -o 104 --my=alpha4:7184
--lru_mb=1024 --zero=zero1:5180 --logtostderr -v=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --snapshot_after 100
alpha5:
image: dgraph/dgraph:latest
container_name: alpha5
working_dir: /data/alpha5
depends_on:
- alpha4
labels:
cluster: test
ports:
- 8185:8185
- 9185:9185
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha --jaeger.collector=http://jaeger:14268 -o 105 --my=alpha5:7185
--lru_mb=1024 --zero=zero1:5180 --logtostderr -v=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --snapshot_after 100
alpha6:
image: dgraph/dgraph:latest
container_name: alpha6
working_dir: /data/alpha6
depends_on:
- alpha5
labels:
cluster: test
ports:
- 8186:8186
- 9186:9186
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha --jaeger.collector=http://jaeger:14268 -o 106 --my=alpha6:7186
--lru_mb=1024 --zero=zero1:5180 --logtostderr -v=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --snapshot_after 100
jaeger:
image: jaegertracing/all-in-one:latest
container_name: jaeger
working_dir: /working/jaeger
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
ports:
- 16686:16686
command: --memory.max-traces=1000000
zero1:
image: dgraph/dgraph:latest
container_name: zero1
working_dir: /data/zero1
labels:
cluster: test
ports:
- 5180:5180
- 6180:6180
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero --jaeger.collector=http://jaeger:14268 -o 100 --idx=1
--my=zero1:5180 --replicas=3 --logtostderr -v=2 --bindall --rebalance_interval 3h
zero2:
image: dgraph/dgraph:latest
container_name: zero2
working_dir: /data/zero2
depends_on:
- zero1
labels:
cluster: test
ports:
- 5182:5182
- 6182:6182
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero --jaeger.collector=http://jaeger:14268 -o 102 --idx=2
--my=zero2:5182 --replicas=3 --logtostderr -v=2 --peer=zero1:5180 --rebalance_interval 3h
zero3:
image: dgraph/dgraph:latest
container_name: zero3
working_dir: /data/zero3
depends_on:
- zero2
labels:
cluster: test
ports:
- 5183:5183
- 6183:6183
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero --jaeger.collector=http://jaeger:14268 -o 103 --idx=3
--my=zero3:5183 --replicas=3 --logtostderr -v=2 --peer=zero1:5180 --rebalance_interval 3h
volumes: {}