-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·296 lines (280 loc) · 11.5 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
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# tag::preamble[]
version: "3.5"
services:
# end::preamble[]
# tag::qanary-pipeline[]
qanary-pipeline:
container_name: qanary-pipeline
build:
context: ./apps/qanary-pipeline
restart: unless-stopped
networks:
- rasa-network
ports:
- "$QANARY_PORT:$QANARY_PORT"
environment:
- "STARDOG_DATABASE=$STARDOG_DATABASE"
- "STARDOG_URL=$STARDOG_URL"
- "STARDOG_USERNAME=$STARDOG_USERNAME"
- "STARDOG_PASSWORD=$STARDOG_PASSWORD"
- "SERVER_HOST=$QANARY_HOST"
- "SERVER_PORT=$QANARY_PORT"
- "QANARY_PROCESS_ALLOW-ADDITIONAL-TRIPLES=true"
profiles: ["all", "slim", "qanary", "qanary-ner", "qanary-slim"]
# end::qanary-pipeline[]
# qanary-component-example1:
# container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_EXAMPLE_A_NAME
# networks:
# - rasa-network
# ports:
# - "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_EXAMPLE_A_PORT:40500"
# restart: unless-stopped
# build:
# context: .
# dockerfile: ./apps/qanary-component-example/Dockerfile
# environment:
# - "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
# - "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_EXAMPLE_A_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_EXAMPLE_A_PORT"
# volumes:
# - ./apps/qanary-component-example:/app/apps/qanary-component-example
# - /app/apps/qanary-component-example/node_modules
# - /app/node_modules
# profiles: ["qanary", "all", "slim"]
# tag::qanary-components[]
# tag::qanary-component-pm[]
qanary-component-pm-measurand:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_MEASURAND_NAME
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_MEASURAND_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_MEASURAND_PORT"
restart: unless-stopped
build:
context: .
dockerfile: ./apps/qanary-component-pm/Dockerfile
environment:
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_MEASURAND_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_MEASURAND_PORT"
- "QANARY_ORIGIN=$QANARY_HOST:$QANARY_PORT"
- "LUBW_DOMAIN=$PM_MEASURAND_DOMAIN"
volumes:
- ./apps/qanary-component-pm:/app/apps/qanary-component-pm
- /app/apps/qanary-component-pm/node_modules
- /app/node_modules
profiles: ["all", "slim", "qanary", "qanary-slim"]
qanary-component-pm-station:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_STATION_NAME
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_STATION_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_STATION_PORT"
restart: unless-stopped
build:
context: .
dockerfile: ./apps/qanary-component-pm/Dockerfile
environment:
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_STATION_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_STATION_PORT"
- "QANARY_ORIGIN=$QANARY_HOST:$QANARY_PORT"
- "LUBW_DOMAIN=$PM_STATION_DOMAIN"
volumes:
- ./apps/qanary-component-pm:/app/apps/qanary-component-pm
- /app/apps/qanary-component-pm/node_modules
- /app/node_modules
profiles: ["all", "slim", "qanary", "qanary-slim"]
qanary-component-pm-calculation:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_CALCULATION_NAME
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_CALCULATION_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_CALCULATION_PORT"
restart: unless-stopped
build:
context: .
dockerfile: ./apps/qanary-component-pm/Dockerfile
environment:
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_CALCULATION_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_CALCULATION_PORT"
- "QANARY_ORIGIN=$QANARY_HOST:$QANARY_PORT"
- "LUBW_DOMAIN=$PM_CALCULATION_DOMAIN"
volumes:
- ./apps/qanary-component-pm:/app/apps/qanary-component-pm
- /app/apps/qanary-component-pm/node_modules
- /app/node_modules
profiles: ["all", "slim", "qanary", "qanary-slim"]
qanary-component-pm-representation:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_REPRESENTATION_NAME
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_REPRESENTATION_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_REPRESENTATION_PORT"
restart: unless-stopped
build:
context: .
dockerfile: ./apps/qanary-component-pm/Dockerfile
environment:
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_REPRESENTATION_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PM_REPRESENTATION_PORT"
- "QANARY_ORIGIN=$QANARY_HOST:$QANARY_PORT"
- "LUBW_DOMAIN=$PM_REPRESENTATION_DOMAIN"
volumes:
- ./apps/qanary-component-pm:/app/apps/qanary-component-pm
- /app/apps/qanary-component-pm/node_modules
- /app/node_modules
profiles: ["all", "slim", "qanary", "qanary-slim"]
# end::qanary-component-pm[]
# tag::qanary-component-time[]
qanary-component-time:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_TIME_NAME
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_TIME_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_TIME_PORT"
restart: unless-stopped
build:
context: .
dockerfile: ./apps/qanary-component-time/Dockerfile
environment:
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_TIME_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_TIME_PORT"
- "QANARY_ORIGIN=$QANARY_HOST:$QANARY_PORT"
volumes:
- ./apps/qanary-component-time:/app/apps/qanary-component-time
- /app/apps/qanary-component-time/node_modules
- /app/node_modules
profiles: ["all", "slim", "qanary", "qanary-slim"]
# end::qanary-component-time[]
# tag::qanary-component-ld-shuyo[]
qanary-component-ld-shuyo:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_LD_SHUYO_NAME
build:
context: ./apps/qanary-component-ld-shuyo
restart: unless-stopped
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_LD_SHUYO_PORT:5555"
environment:
- "SERVER_HOST=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_LD_SHUYO_NAME"
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_LD_SHUYO_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_LD_SHUYO_PORT"
profiles: ["all", "slim", "qanary", "qanary-slim"]
# end::qanary-component-ld-shuyo[]
# tag::qanary-component-ner-automl[]
qanary-component-ner-automl:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_NAME
networks:
- rasa-network
restart: unless-stopped
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_PORT"
build:
context: ./apps/qanary-component-ner-automl
environment:
- "SPRING_BOOT_ADMIN_URL=$QANARY_COMPONENT_NER_AUTOML_SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_USERNAME=$QANARY_COMPONENT_NER_AUTOML_SPRING_BOOT_ADMIN_USERNAME"
- "SPRING_BOOT_ADMIN_PASSWORD=$QANARY_COMPONENT_NER_AUTOML_SPRING_BOOT_ADMIN_PASSWORD"
- "SERVICE_HOST=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_PORT"
- "SERVICE_PORT=$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_PORT"
- "SERVICE_NAME_COMPONENT=$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_NAME"
- "SERVICE_DESCRIPTION_COMPONENT=$QANARY_COMPONENT_NER_AUTOML_SERVICE_DESCRIPTION"
- "PRODUCTION=True"
command: uvicorn qanarycomponent:app --host 0.0.0.0 --port=$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_PORT
profiles: ["all", "qanary", "qanary-ner"]
# end::qanary-component-ner-automl[]
# tag::qanary-component-fuzzy[]
qanary-component-fuzzy:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_FUZZY_NAME
networks:
- rasa-network
ports:
- "$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_FUZZY_PORT:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_FUZZY_PORT"
restart: unless-stopped
build:
context: .
dockerfile: ./apps/qanary-component-fuzzy/Dockerfile
environment:
- "SPRING_BOOT_ADMIN_URL=$SPRING_BOOT_ADMIN_URL"
- "SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE-BASE-URL=http://$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_FUZZY_NAME:$SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_FUZZY_PORT"
- "QANARY_ORIGIN=$QANARY_HOST:$QANARY_PORT"
volumes:
- ./apps/qanary-component-fuzzy:/app/apps/qanary-component-fuzzy
- /app/apps/qanary-component-fuzzy/node_modules
- /app/node_modules
profiles: ["all", "qanary", "qanary-ner"]
# end::qanary-component-fuzzy[]
# end::qanary-components[]
# tag::rasa[]
rasa:
container_name: $RASA_NAME
networks:
- rasa-network
ports:
- "$RASA_PORT:5005"
build:
context: ./apps/rasa
command: >
run --enable-api --cors "*"
profiles: ["all", "slim", "rasa"]
# end::rasa[]
# tag::action-server[]
action-server:
container_name: $ACTION_SERVER_NAME
networks:
- rasa-network
ports:
- "$ACTION_SERVER_PORT:8080"
build:
context: .
dockerfile: ./apps/action-server/Dockerfile
volumes:
- ./apps/action-server:/app/apps/action-server
- /app/apps/action-server/node_modules
- /app/node_modules
profiles: ["all", "slim", "rasa"]
# end::action-server[]
# tag::frontend[]
frontend:
container_name: $FRONTEND_NAME
build:
context: .
dockerfile: apps/frontend/Dockerfile
volumes:
- ./apps/frontend:/app/apps/frontend
- /app/apps/frontend/node_modules
- /app/node_modules
restart: unless-stopped
ports:
- "$FRONTEND_PORT:3000"
networks:
- rasa-network
profiles: ["all", "slim", "rasa"]
# end::frontend[]
# tag::qanary-component-ner-automl-training[]
qanary-component-ner-automl-training:
container_name: $SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_NER_AUTOML_TRAINING_NAME
build:
context: .
dockerfile: ./apps/qanary-component-ner-automl-training/Dockerfile
args:
TRAININGDATA: ${QANARY_COMPONENT_NER_AUTOML_TRAINING_TRAININGDATA}
TESTDATA: ${QANARY_COMPONENT_NER_AUTOML_TRAINING_TESTDATA}
MODELTYPE: ${QANARY_COMPONENT_NER_AUTOML_TRAINING_MODELTYPE}
LANGUAGE: ${QANARY_COMPONENT_NER_AUTOML_TRAINING_MODELLANGUAGE}
image: qanary-component-ner-automl-pretrained-lubw-data:latest
volumes:
- ./apps/qanary-component-ner-automl-training:/app
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
profiles: ["qanary-ner-training"]
# end::qanary-component-ner-automl-training[]
# tag::networks[]
networks:
rasa-network:
external: false
# end::networks[]