-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
322 lines (309 loc) · 9.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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
services:
qhana-plugin-runner:
image: ghcr.io/ust-quantil/qhana-plugin-runner:main
depends_on:
- minio
ports:
- "5005:8080"
volumes:
- instance:/app/instance
environment:
WAIT_HOSTS: host.docker.internal:6379, host.docker.internal:5432
WAIT_SLEEP_INTERVAL: 5
WAIT_TIMEOUT: 600
CONCURRENCY: 2
BROKER_URL: redis://host.docker.internal:6379
RESULT_BACKEND: redis://host.docker.internal:6379
CELERY_QUEUE: "qhana_queue1"
SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://user:password@host.docker.internal:5432/default_db"
DEFAULT_FILE_STORE: "minio"
MINIO_CLIENT: '{"endpoint": "localhost:9000", "access_key": "QHANA", "secret_key": "QHANAQHANA", "secure": false}'
LOCALHOST_PROXY_PORTS: &localhost-proxy-ports ":5005 :5006 :5007 :9000 :9001 :9091 ${EXTRA_PROXY_PORTS}"
GIT_PLUGINS: &git-plugins "git+https://github.com/UST-QuAntiL/qhana-plugin-runner.git@main#subdirectory=/stable_plugins\ngit+https://github.com/UST-QuAntiL/nisq-analyzer-prio-service.git@master#subdirectory=/plugins"
PLUGIN_FOLDERS: &plugin-folders ./git-plugins:./git-plugins/classical_ml/data_preparation:./git-plugins/classical_ml/scikit_ml:./git-plugins/data_synthesis:./git-plugins/demo:./git-plugins/file_utils:./git-plugins/infrastructure:./git-plugins/muse:./git-plugins/nisq_analyzer:./git-plugins/quantum_ml/max_cut:./git-plugins/quantum_ml/pennylane_qiskit_ml:./git-plugins/quantum_ml/qiskit_ml:./git-plugins/visualization/complex:./git-plugins/visualization/file_types:./git-plugins/workflow
NISQ_ANALYZER_UI_URL: http://localhost:5009
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: "redis:latest"
ports:
- "6379:6379"
postgres:
image: "postgres:latest"
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: default_db
postgres-registry:
image: "postgres:latest"
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: default_db
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9001"
volumes:
- minio:/data
environment:
MINIO_ROOT_USER: QHANA
MINIO_ROOT_PASSWORD: QHANAQHANA
ports:
- "9000:9000"
- "9001:9001"
muse-db:
image: ghcr.io/ust-quantil/mini-muse:main
worker:
image: ghcr.io/ust-quantil/qhana-plugin-runner:main
depends_on:
- qhana-plugin-runner
volumes:
- instance:/app/instance
environment:
WAIT_HOSTS: host.docker.internal:6379, host.docker.internal:5432
WAIT_SLEEP_INTERVAL: 5
WAIT_TIMEOUT: 600
CONTAINER_MODE: worker
CONCURRENCY: 2
BROKER_URL: redis://host.docker.internal:6379
RESULT_BACKEND: redis://host.docker.internal:6379
CELERY_QUEUE: "qhana_queue1"
SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://user:password@host.docker.internal:5432/default_db"
DEFAULT_FILE_STORE: "minio"
MINIO_CLIENT: '{"endpoint": "localhost:9000", "access_key": "QHANA", "secret_key": "QHANAQHANA", "secure": false}'
LOCALHOST_PROXY_PORTS: *localhost-proxy-ports
GIT_PLUGINS: *git-plugins
PLUGIN_FOLDERS: *plugin-folders
extra_hosts:
- "host.docker.internal:host-gateway"
backend:
image: ghcr.io/ust-quantil/qhana-backend:main
volumes:
- experiments:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
LOCALHOST_PROXY_PORTS: *localhost-proxy-ports
QHANA_HOST: http://localhost:9091
ports:
- 9091:9090
ui:
image: ghcr.io/ust-quantil/qhana-ui:main
ports:
- 8080:8080
environment:
PLUGIN_REGISTRY_PROTOCOL: "http:"
PLUGIN_REGISTRY_HOSTNAME: localhost
PLUGIN_REGISTRY_PORT: 5006
PLUGIN_REGISTRY_PATH: /api/
extra_hosts:
- "host.docker.internal:host-gateway"
registry:
image: ghcr.io/ust-quantil/qhana-plugin-registry:main
ports:
- "5006:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
WAIT_HOSTS: host.docker.internal:6379, host.docker.internal:5433
WAIT_SLEEP_INTERVAL: 5
WAIT_AFTER: 5
WAIT_TIMEOUT: 600
BROKER_URL: redis://host.docker.internal:6379
RESULT_BACKEND: redis://host.docker.internal:6379
CELERY_QUEUE: "registry_queue"
SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://user:password@host.docker.internal:5433/default_db"
LOCALHOST_PROXY_PORTS: *localhost-proxy-ports
INITIAL_PLUGIN_SEEDS: "http://localhost:5005"
PRECONFIGURED_SERVICES: '[{"serviceId": "qhana-backend", "name": "Backend", "url": "http://localhost:9091"}]'
registry-worker:
image: ghcr.io/ust-quantil/qhana-plugin-registry:main
ports:
- "5007:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
WAIT_HOSTS: host.docker.internal:6379, host.docker.internal:5433
WAIT_SLEEP_INTERVAL: 5
WAIT_AFTER: 5
WAIT_TIMEOUT: 600
CONTAINER_MODE: worker
BROKER_URL: redis://host.docker.internal:6379
RESULT_BACKEND: redis://host.docker.internal:6379
CELERY_QUEUE: "registry_queue"
SQLALCHEMY_DATABASE_URI: "postgresql+psycopg2://user:password@host.docker.internal:5433/default_db"
LOCALHOST_PROXY_PORTS: *localhost-proxy-ports
PLUGIN_DISCOVERY_INTERVAL: 60
PERIODIC_SCHEDULER: true
# For NISQ-Analyzer plugin
nisq-analyzer-ui:
profiles: ["nisq"]
image: planqk/nisq-analyzer-ui:latest
depends_on:
- nisq-analyzer-db
environment:
NISQ_ANALYZER_HOST_NAME: localhost
NISQ_ANALYZER_PORT: 5010
ports:
- '5009:80'
networks:
- default
nisq-analyzer:
profiles: ["nisq"]
image: planqk/nisq-analyzer:without-qprov
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
POSTGRES_HOSTNAME: nisq-analyzer-db
POSTGRES_PORT: 5060
POSTGRES_USER: nisq
POSTGRES_PASSWORD: nisq
POSTGRES_DB: nisq
# activate correct application properties
SPRING_PROFILES_ACTIVE: docker
TRANSLATOR_HOSTNAME: quantum-transpiler
TRANSLATOR_PORT: 5012
# Configuration of the SDK Connector Services
QISKIT_HOSTNAME: qiskit-service
QISKIT_PORT: 5013
FOREST_HOSTNAME: forest-service
FOREST_PORT: 5014
PYTKET_HOSTNAME: pytket-service
PYTKET_PORT: 5015
# Configure Prioritization Service connection
PRIORITIZATION_HOSTNAME: qhana-plugin-runner
PRIORITIZATION_PORT: 8080
ports:
- '5010:5010'
networks:
- default
qiskit-service:
image: planqk/qiskit-service:latest
profiles: ["nisq"]
command: sh /app/startup.sh
ports:
- "5013:5013"
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=sqlite:////data/app.db
volumes:
- exec_data:/data
networks:
- default
qiskit-rq-worker:
image: planqk/qiskit-service:latest
profiles: ["nisq"]
command: rq worker --url redis://redis:6379 qiskit-service_execute
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=sqlite:////data/app.db
volumes:
- exec_data:/data
depends_on:
- redis
deploy:
replicas: 2
forest-service:
image: planqk/forest-service:latest
profiles: ["nisq"]
command: sh /app/startup.sh
ports:
- "5014:5014"
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=sqlite:////data/app.db
- QVM_HOSTNAME=rigetti-qvm
- QVM_PORT=5016
- QUILC_HOSTNAME=rigetti-quilc
- QUILC_PORT=5017
volumes:
- exec_data:/data
networks:
- default
forest-rq-worker:
image: planqk/forest-service:latest
profiles: ["nisq"]
command: rq worker --url redis://redis:6379 forest-service_execute
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=sqlite:////data/app.db
- QVM_HOSTNAME=rigetti-qvm
- QVM_PORT=5016
- QUILC_HOSTNAME=rigetti-quilc
- QUILC_PORT=5017
volumes:
- exec_data:/data
depends_on:
- redis
networks:
- default
pytket-service:
image: planqk/pytket-service:latest
profiles: ["nisq"]
command: sh /app/startup.sh
ports:
- "5015:5015"
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=sqlite:////data/app.db
- QVM_HOSTNAME=rigetti-qvm
- QVM_PORT=5016
volumes:
- exec_data:/data
networks:
- default
pytket-rq-worker:
image: planqk/pytket-service:latest
profiles: ["nisq"]
command: rq worker --url redis://redis:6379 pytket-service_execute
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=sqlite:////data/app.db
- QVM_HOSTNAME=rigetti-qvm
- QVM_PORT=5016
volumes:
- exec_data:/data
depends_on:
- redis
networks:
- default
rigetti-qvm:
image: rigetti/qvm
profiles: ["nisq"]
ports:
- "5016:5016"
command: -S -p 5016
networks:
- default
rigetti-quilc:
image: rigetti/quilc
profiles: ["nisq"]
ports:
- "5017:5017"
command: -S -p 5017
networks:
- default
nisq-analyzer-db:
build:
context: nisq-analyzer-db
dockerfile: Dockerfile
profiles: ["nisq"]
environment:
POSTGRES_PASSWORD: nisq
POSTGRES_USER: nisq
POSTGRES_DB: nisq
command: -p 5060
ports:
- "5060:5060"
volumes:
minio:
instance:
experiments:
exec_data:
networks:
default:
driver: bridge