-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.test.yml
67 lines (66 loc) · 1.91 KB
/
docker-compose.test.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
# Auto-generated with: [./compose -a 3 -z 1 --acl --port_offset=100]
#
version: "3.5"
services:
alpha1:
image: dgraph/dgraph:local
container_name: alpha1
working_dir: /data/alpha1
labels:
cluster: test
ports:
- 8180:8180
- 9180:9180
volumes:
- type: bind
source: ./docker-test-secret.txt
target: /secret/hmac
read_only: true
command: dgraph alpha -o 100 --my=alpha1:7180 --zero=zero1:5180 --logtostderr
-v=2 --raft "idx=1; group=1" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
--acl "secret-file=/secret/hmac; access-ttl=3s"
alpha2:
image: dgraph/dgraph:local
container_name: alpha2
working_dir: /data/alpha2
labels:
cluster: test
ports:
- 8182:8182
- 9182:9182
volumes:
- type: bind
source: ./docker-test-secret.txt
target: /secret/hmac
read_only: true
command: dgraph alpha -o 102 --my=alpha2:7182 --zero=zero1:5180 --logtostderr
-v=2 --raft "idx=2; group=1" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
--acl "secret-file=/secret/hmac; access-ttl=3s"
alpha3:
image: dgraph/dgraph:local
container_name: alpha3
working_dir: /data/alpha3
labels:
cluster: test
ports:
- 8183:8183
- 9183:9183
volumes:
- type: bind
source: ./docker-test-secret.txt
target: /secret/hmac
read_only: true
command: dgraph alpha -o 103 --my=alpha3:7183 --zero=zero1:5180 --logtostderr
-v=2 --raft "idx=3; group=1" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
--acl "secret-file=/secret/hmac; access-ttl=3s"
zero1:
image: dgraph/dgraph:local
container_name: zero1
working_dir: /data/zero1
labels:
cluster: test
ports:
- 5180:5180
- 6180:6180
command: dgraph zero -o 100 --raft='idx=1' --my=zero1:5180 --replicas=3
--logtostderr -v=2 --bindall