-
Notifications
You must be signed in to change notification settings - Fork 88
/
docker-compose.yml
107 lines (102 loc) · 3.6 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
services:
zero1:
image: dgraph/dgraph:latest
container_name: zero1
working_dir: /data/zero1
ports:
- 5080:5080
- 6080:6080
labels:
cluster: test
service: zero
command: dgraph zero --port_offset 0 --my=zero1:5080 --replicas 3 --raft idx=1 --logtostderr -v=2 --bindall --expose_trace --profile_mode block --block_rate 10
zero2:
image: dgraph/dgraph:latest
container_name: zero2
working_dir: /data/zero2
depends_on:
- zero1
ports:
- 5082:5082
- 6082:6082
labels:
cluster: test
service: zero
command: dgraph zero --port_offset 2 --my=zero2:5082 --replicas 3 --raft idx=2 --logtostderr -v=2 --peer=zero1:5080
zero3:
image: dgraph/dgraph:latest
container_name: zero3
working_dir: /data/zero3
depends_on:
- zero2
ports:
- 5083:5083
- 6083:6083
labels:
cluster: test
service: zero
command: dgraph zero --port_offset 3 --my=zero3:5083 --replicas 3 --raft idx=3 --logtostderr -v=2 --peer=zero1:5080
alpha1:
image: dgraph/dgraph:latest
container_name: alpha1
working_dir: /data/alpha1
volumes:
- type: bind
source: ./hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ./tls
target: /dgraph-tls
read_only: true
ports:
- 8080:8080
- 9080:9080
labels:
cluster: test
service: alpha
command: dgraph alpha --port_offset 0 --my=alpha1:7080 --zero=zero1:5080 --expose_trace --trace ratio=1.0 --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=3s;refresh-ttl=5s" --tls "client-auth-type=REQUIREANDVERIFY;ca-cert=/dgraph-tls/ca.crt;server-cert=/dgraph-tls/node.crt;server-key=/dgraph-tls/node.key"
alpha2:
image: dgraph/dgraph:latest
container_name: alpha2
working_dir: /data/alpha2
depends_on:
- alpha1
volumes:
- type: bind
source: ./hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ./tls
target: /dgraph-tls
read_only: true
ports:
- 8082:8082
- 9082:9082
labels:
cluster: test
service: alpha
command: dgraph alpha --port_offset 2 --my=alpha2:7082 --zero=zero1:5080 --expose_trace --trace ratio=1.0 --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=3s;refresh-ttl=5s" --tls "client-auth-type=REQUIREANDVERIFY;ca-cert=/dgraph-tls/ca.crt;server-cert=/dgraph-tls/node.crt;server-key=/dgraph-tls/node.key"
alpha3:
image: dgraph/dgraph:latest
container_name: alpha3
working_dir: /data/alpha3
depends_on:
- alpha2
volumes:
- type: bind
source: ./hmac-secret
target: /dgraph-acl/hmac-secret
read_only: true
- type: bind
source: ./tls
target: /dgraph-tls
read_only: true
ports:
- 8083:8083
- 9083:9083
labels:
cluster: test
service: alpha
command: dgraph alpha --port_offset 3 --my=alpha3:7083 --zero=zero1:5080 --expose_trace --trace ratio=1.0 --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=3s;refresh-ttl=5s" --tls "client-auth-type=REQUIREANDVERIFY;ca-cert=/dgraph-tls/ca.crt;server-cert=/dgraph-tls/node.crt;server-key=/dgraph-tls/node.key"