-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (57 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
57 lines (57 loc) · 1.47 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
# Federation test setup with 2 alpha instances
# alpha1: user-service subgraph
# alpha2: reviews-service subgraph
services:
alpha1:
image: dgraph/dgraph:local
working_dir: /data/alpha1
labels:
cluster: test
service: alpha1
ports:
- 8080
- 9080
volumes:
- type: bind
source: ${LINUX_GOBIN:-$GOPATH/bin}
target: /gobin
read_only: true
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --my=alpha1:7080 --zero=zero1:5080 --logtostderr -v=2
--raft="idx=1;" --security "whitelist=0.0.0.0/0;"
alpha2:
image: dgraph/dgraph:local
working_dir: /data/alpha2
depends_on:
- alpha1
labels:
cluster: test
service: alpha2
ports:
- 8080
- 9080
volumes:
- type: bind
source: ${LINUX_GOBIN:-$GOPATH/bin}
target: /gobin
read_only: true
command:
/gobin/dgraph ${COVERAGE_OUTPUT} alpha --my=alpha2:7080 --zero=zero1:5080 --logtostderr -v=2
--raft="idx=2;" --security "whitelist=0.0.0.0/0;"
zero1:
image: dgraph/dgraph:local
working_dir: /data/zero1
labels:
cluster: test
ports:
- 5080
- 6080
volumes:
- type: bind
source: ${LINUX_GOBIN:-$GOPATH/bin}
target: /gobin
read_only: true
command:
/gobin/dgraph ${COVERAGE_OUTPUT} zero --telemetry "reports=false;" --raft="idx=1;"
--my=zero1:5080 --replicas=1 --logtostderr -v=2 --bindall
volumes: {}