-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose-router.yaml
More file actions
260 lines (245 loc) · 6.55 KB
/
docker-compose-router.yaml
File metadata and controls
260 lines (245 loc) · 6.55 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
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
256
257
258
259
260
configs:
config.json:
content: |
{
"verifier_instances": [
"http://vlei-verifier-1:7676",
"http://vlei-verifier-2:7676",
"http://vlei-verifier-3:7676"
]
}
keria.json:
content: |
{
"dt": "2023-12-01T10:05:25.062609+00:00",
"keria": {
"dt": "2023-12-01T10:05:25.062609+00:00",
"curls": ["http://keria:3902/"]
},
"iurls": [
"http://witness-demo:5642/oobi/BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha/controller",
"http://witness-demo:5643/oobi/BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM/controller",
"http://witness-demo:5644/oobi/BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX/controller",
"http://witness-demo:5645/oobi/BM35JN8XeJSEfpxopjn5jr7tAHCE5749f0OobhMLCorE/controller",
"http://witness-demo:5646/oobi/BIj15u5V11bkbtAxMA7gcNJZcax-7TgaBMLsQnMHpYHP/controller",
"http://witness-demo:5647/oobi/BF2rZTW79z4IXocYRQnjjsOuvFUQv-ptCf8Yltd7PfsM/controller"
]
}
wan.json:
content: |
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wan": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5632/", "http://witness-demo:5642/"]
},
}
wil.json:
content: |
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wil": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["http://witness-demo:5643/"]
}
}
wes.json:
content: |
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wes": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["http://witness-demo:5644/"]
}
}
wit.json:
content: |
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wit": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["http://witness-demo:5645/"]
}
}
wub.json:
content: |
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wub": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["http://witness-demo:5646/"]
}
}
wyx.json:
content: |
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wyx": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["http://witness-demo:5647/"]
}
}
services:
vlei-verifier-router:
image: gleif/vlei-verifier-router:latest
configs:
- source: config.json
target: /usr/local/var/server/config.json
depends_on:
- redis
- vlei-verifier-1
- vlei-verifier-2
- vlei-verifier-3
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
ports:
- 7676:7676
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:7676/health
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
redis:
image: redis:latest
container_name: redis
ports:
- '6379:6379'
- '6379:6379'
volumes:
- redis_data:/data
restart: always
vlei-server:
image: gleif/vlei:0.2.0
environment:
- PYTHONUNBUFFERED=1
- PYTHONIOENCODING=UTF-8
command:
- vLEI-server
- -s
- ./schema/acdc
- -c
- ./samples/acdc/
- -o
- ./samples/oobis/
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:7723/oobi/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
ports:
- 7723:7723
keria:
depends_on:
vlei-server:
condition: service_healthy
witness-demo:
condition: service_healthy
image: ${KERIA_IMAGE:-weboftrust/keria}:${KERIA_IMAGE_TAG:-0.2.0-dev4}
platform: linux/x86_64
environment:
- KERI_AGENT_CORS=1
- PYTHONUNBUFFERED=1
- PYTHONIOENCODING=UTF-8
- KERI_URL=http://keria:3902
configs:
- source: keria.json
target: /usr/local/var/keri/cf/keria.json
entrypoint: ['keria', 'start', '--config-file', 'keria', '--name', 'agent']
healthcheck:
test: ['CMD', 'wget', '--spider', 'http://keria:3902/spec.yaml']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
ports:
- 3901:3901
- 3902:3902
- 3903:3903
witness-demo:
image: weboftrust/keri-witness-demo:1.1.0
environment:
- PYTHONUNBUFFERED=1
- PYTHONIOENCODING=UTF-8
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5642/oobi']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
configs:
- source: wan.json
target: /keripy/scripts/keri/cf/main/wan.json
- source: wes.json
target: /keripy/scripts/keri/cf/main/wes.json
- source: wil.json
target: /keripy/scripts/keri/cf/main/wil.json
- source: wit.json
target: /keripy/scripts/keri/cf/main/wit.json
- source: wub.json
target: /keripy/scripts/keri/cf/main/wub.json
- source: wyx.json
target: /keripy/scripts/keri/cf/main/wyx.json
vlei-verifier-1:
image: gleif/vlei-verifier:0.1.4
container_name: vlei-verifier-1
environment:
- VERIFIER_MODE=test
- VERIFIER_CONFIG_FILE=verifier-config-test.json
depends_on:
- vlei-server
- witness-demo
ports:
- 5652:7676
healthcheck:
test: ['CMD', 'wget', '--spider', 'http://localhost:7676/health']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
vlei-verifier-2:
image: gleif/vlei-verifier:latest
container_name: vlei-verifier-2
environment:
- VERIFIER_MODE=test
- VERIFIER_CONFIG_FILE=verifier-config-test.json
depends_on:
- vlei-server
- witness-demo
ports:
- 5653:7676
healthcheck:
test: ['CMD', 'wget', '--spider', 'http://localhost:7676/health']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
vlei-verifier-3:
image: gleif/vlei-verifier:latest
container_name: vlei-verifier-3
environment:
- VERIFIER_MODE=test
- VERIFIER_CONFIG_FILE=verifier-config-test.json
depends_on:
- vlei-server
- witness-demo
ports:
- 5654:7676
healthcheck:
test: ['CMD', 'wget', '--spider', 'http://localhost:7676/health']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
volumes:
redis_data: