-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
190 lines (174 loc) · 3.83 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
version: '3'
volumes:
data1-1:
data1-2:
data2-1:
data2-2:
exec_data:
services:
### Camunda Engine ###
camunda-engine:
build: camunda
ports:
- 8080:8080
networks:
- quokka
### Error-Mitigation Service ###
minio1:
image: quay.io/minio/minio:RELEASE.2022-01-27T03-53-02Z
command: server --console-address ":9001" http://minio{1...2}/data{1...2}
expose:
- "9000"
- "9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- quokka
hostname: minio1
volumes:
- data1-1:/data1
- data1-2:/data2
minio2:
image: quay.io/minio/minio:RELEASE.2022-01-27T03-53-02Z
command: server --console-address ":9001" http://minio{1...2}/data{1...2}
expose:
- "9000"
- "9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- quokka
hostname: minio2
volumes:
- data2-1:/data1
- data2-2:/data2
nginx:
image: nginx:1.19.2-alpine
hostname: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
depends_on:
- minio1
- minio2
networks:
- quokka
error-mitigation-service:
image: planqk/error-mitigation-service:latest
command: app.py
ports:
- "5071:5071"
environment:
- MINIO_URL=nginx:9000
depends_on:
- nginx
networks:
- quokka
execution-service:
image: planqk/execution-service:latest
build: ./services/execution-service
ports:
- '5075:5075'
networks:
- quokka
optimization-service:
image: planqk/optimization-service:latest
build: ./services/optimization-service
ports:
- '5074:5074'
networks:
- quokka
env_file:
- ip.env
objective-evaluation-service:
image: planqk/objective-evaluation-service:latest
ports:
- '5072:5072'
networks:
- quokka
circuit-generation-service:
image: planqk/quantum-circuit-generator:latest
ports:
- '5073:5073'
networks:
- quokka
circuit-cutting-service:
image: planqk/circuit-cutting-service:latest
ports:
- '5076:5076'
networks:
- quokka
warm-starting-service:
image: planqk/warm-starting-service:latest
ports:
- '5077:5077'
networks:
- quokka
quokka-gateway:
image: planqk/quokka-gateway:0.2.0
ports:
- '6474:6474'
networks:
- quokka
#######################
### qiskit service ####
redis:
image: redis:latest
command: --port 5040
ports:
- "5040:5040"
networks:
- quokka
qiskit-service:
image: planqk/qiskit-service:latest
command: sh /app/startup.sh
ports:
- "5013:5013"
environment:
- REDIS_URL=redis://redis:5040
- DATABASE_URL=sqlite:////data/app.db
volumes:
- exec_data:/data
networks:
- quokka
qiskit-rq-worker:
image: planqk/qiskit-service:latest
command: rq worker --url redis://redis:5040 qiskit-service_execute
environment:
- REDIS_URL=redis://redis:5040
- DATABASE_URL=sqlite:////data/app.db
volumes:
- exec_data:/data
depends_on:
- redis
deploy:
replicas: 2
networks:
- quokka
rq-dashboard:
image: eoranged/rq-dashboard
ports:
- "9181:9181"
environment:
- RQ_DASHBOARD_REDIS_URL=redis://redis:5040
networks:
- quokka
# end of qiskit service
########
networks:
quokka:
driver: bridge