-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathdocker-compose.yml
255 lines (246 loc) · 7.05 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
version: "3.5"
services:
zero1:
image: dgraph/dgraph:local
working_dir: /data/zero1
ports:
- 5080
- 6080
labels:
cluster: test
service: zero
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command:
/gobin/dgraph ${COVERAGE_OUTPUT} zero --telemetry "reports=false; sentry=false;"
--my=zero1:5080 --replicas 3 --raft="idx=1" --logtostderr -v=2 --bindall --expose_trace
--profile_mode block --block_rate 10
zero2:
image: dgraph/dgraph:local
working_dir: /data/zero2
depends_on:
- zero1
ports:
- 5080
- 6080
labels:
cluster: test
service: zero
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command:
/gobin/dgraph ${COVERAGE_OUTPUT} zero --telemetry "reports=false;" --my=zero2:5080
--replicas 3 --raft="idx=2" --logtostderr -v=2 --peer=zero1:5080
zero3:
image: dgraph/dgraph:local
working_dir: /data/zero3
depends_on:
- zero2
ports:
- 5080
- 6080
labels:
cluster: test
service: zero
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command:
/gobin/dgraph ${COVERAGE_OUTPUT} zero --telemetry "reports=false;" --my=zero3:5080 --replicas
3 --raft="idx=3" --logtostderr -v=2 --peer=zero1:5080
alpha1:
image: dgraph/dgraph:local
working_dir: /data/alpha1
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: ../acl/hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ../enc/test-fixtures/enc-key
target: /dgraph-enc/enc-key
read_only: true
ports:
- 8080
- 9080
labels:
cluster: test
service: alpha
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --telemetry "reports=false;" --encryption
"key-file=/dgraph-enc/enc-key;" --my=alpha1:7080 --zero=zero1:5080,zero2:5080,zero3:5080
--expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2 --security
"whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;" --acl
"secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
alpha2:
image: dgraph/dgraph:local
working_dir: /data/alpha2
depends_on:
- alpha1
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: ../acl/hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ../enc/test-fixtures/enc-key
target: /dgraph-enc/enc-key
read_only: true
ports:
- 8080
- 9080
labels:
cluster: test
service: alpha
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;"
--my=alpha2:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block
--block_rate 10 --logtostderr -v=2 --security
"whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;" --acl
"secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
alpha3:
image: dgraph/dgraph:local
working_dir: /data/alpha3
depends_on:
- alpha2
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: ../acl/hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ../enc/test-fixtures/enc-key
target: /dgraph-enc/enc-key
read_only: true
ports:
- 8080
- 9080
labels:
cluster: test
service: alpha
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;"
--my=alpha3:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block
--block_rate 10 --logtostderr -v=2 --security
"whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;" --acl
"secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
alpha4:
image: dgraph/dgraph:local
working_dir: /data/alpha4
depends_on:
- alpha3
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: ../acl/hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ../enc/test-fixtures/enc-key
target: /dgraph-enc/enc-key
read_only: true
ports:
- 8080
- 9080
labels:
cluster: test
service: alpha
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;"
--my=alpha4:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block
--block_rate 10 --logtostderr -v=2 --security
"whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;" --acl
"secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
alpha5:
image: dgraph/dgraph:local
working_dir: /data/alpha5
depends_on:
- alpha4
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: ../acl/hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ../enc/test-fixtures/enc-key
target: /dgraph-enc/enc-key
read_only: true
ports:
- 8080
- 9080
labels:
cluster: test
service: alpha
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;"
--my=alpha5:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block
--block_rate 10 --logtostderr -v=2 --security
"whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;" --acl
"secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
alpha6:
image: dgraph/dgraph:local
working_dir: /data/alpha6
depends_on:
- alpha5
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: ../acl/hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ../enc/test-fixtures/enc-key
target: /dgraph-enc/enc-key
read_only: true
ports:
- 8080
- 9080
labels:
cluster: test
service: alpha
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;"
--my=alpha6:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block
--block_rate 10 --logtostderr -v=2 --security
"whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;" --acl
"secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
minio:
image: minio/minio:latest
env_file:
- ./minio.env
working_dir: /data/minio
ports:
- 9001
labels:
cluster: test
command: minio server /data/minio --address :9001