-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
144 lines (144 loc) · 3.75 KB
/
docker-compose.yml
File metadata and controls
144 lines (144 loc) · 3.75 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
# Auto-generated with: [ls]
#
version: "3.5"
services:
alpha1:
image: public.ecr.aws/n1e3y0t3/dgraph-lambda:latest
container_name: alpha1
working_dir: /data/alpha1
labels:
cluster: test
ports:
- 8080:8080
- 9080:9080
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: /tmp/dgraph-builder/hmac_secret_file
target: /secret/hmac
read_only: true
command: /gobin/dgraph alpha --my=alpha1:7080 --zero=zero1:5080,zero2:5082,zero3:5083
--logtostderr -v=2 --expose_trace=true --raft "idx=1; group=1" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.0.0.0/8;"
--acl "secret-file=/secret/hmac;"
deploy:
resources:
limits:
memory: 32G
alpha2:
image: public.ecr.aws/n1e3y0t3/dgraph-lambda:latest
container_name: alpha2
working_dir: /data/alpha2
labels:
cluster: test
ports:
- 8082:8082
- 9082:9082
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: /tmp/dgraph-builder/hmac_secret_file
target: /secret/hmac
read_only: true
command: /gobin/dgraph alpha -o 2 --my=alpha2:7082 --zero=zero1:5080,zero2:5082,zero3:5083
--logtostderr -v=2 --expose_trace=true --raft "idx=2; group=1" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.0.0.0/8;"
--acl "secret-file=/secret/hmac;"
deploy:
resources:
limits:
memory: 32G
alpha3:
image: public.ecr.aws/n1e3y0t3/dgraph-lambda:latest
container_name: alpha3
working_dir: /data/alpha3
labels:
cluster: test
ports:
- 8083:8083
- 9083:9083
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
- type: bind
source: /tmp/dgraph-builder/hmac_secret_file
target: /secret/hmac
read_only: true
command: /gobin/dgraph alpha -o 3 --my=alpha3:7083 --zero=zero1:5080,zero2:5082,zero3:5083
--logtostderr -v=2 --expose_trace=true --raft "idx=3; group=1" --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.0.0.0/8;"
--acl "secret-file=/secret/hmac;"
deploy:
resources:
limits:
memory: 32G
zero1:
image: public.ecr.aws/n1e3y0t3/dgraph-lambda:latest
container_name: zero1
working_dir: /data/zero1
labels:
cluster: test
ports:
- 5080:5080
- 6080:6080
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero --raft='idx=1' --my=zero1:5080 --replicas=3 --logtostderr
-v=2 --bindall
deploy:
resources:
limits:
memory: 32G
zero2:
image: public.ecr.aws/n1e3y0t3/dgraph-lambda:latest
container_name: zero2
working_dir: /data/zero2
depends_on:
- zero1
labels:
cluster: test
ports:
- 5082:5082
- 6082:6082
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero -o 2 --raft='idx=2' --my=zero2:5082 --replicas=3 --logtostderr
-v=2 --peer=zero1:5080
deploy:
resources:
limits:
memory: 32G
zero3:
image: public.ecr.aws/n1e3y0t3/dgraph-lambda:latest
container_name: zero3
working_dir: /data/zero3
depends_on:
- zero2
labels:
cluster: test
ports:
- 5083:5083
- 6083:6083
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero -o 3 --raft='idx=3' --my=zero3:5083 --replicas=3 --logtostderr
-v=2 --peer=zero1:5080
deploy:
resources:
limits:
memory: 32G
volumes: {}