forked from wwWallet/wallet-ecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.template.yml
283 lines (269 loc) · 9.51 KB
/
docker-compose.template.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
version: '3.9'
name: wallet-ecosystem
services:
wallet-enterprise-vid-issuer:
container_name: wallet-enterprise-vid-issuer
hostname: wallet-enterprise-vid-issuer
build:
context: $PWD/wallet-enterprise
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-enterprise:dev-vid
restart: on-failure
ports:
- 8003:8003
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/vid-issuer/datasets/:/datasets/:rw
- ./wallet-enterprise-configurations/vid-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/vid-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/vid-issuer/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/vid-issuer/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/vid-issuer/public/images:/app/public/images:rw
- ./wallet-enterprise-configurations/vid-issuer/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/vid-issuer/views/index.pug:/app/views/index.pug:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist # Not /dist here because of relative imports that assume dist/ and keys/, views/ etc. are sibling dirs
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G
wallet-enterprise-ehic-issuer:
container_name: wallet-enterprise-ehic-issuer
hostname: wallet-enterprise-ehic-issuer
build:
context: $PWD/wallet-enterprise
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-enterprise:dev-ehic
restart: always
ports:
- 8004:8004
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/ehic-issuer/datasets/:/datasets/:rw
- ./wallet-enterprise-configurations/ehic-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/ehic-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/ehic-issuer/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/ehic-issuer/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/ehic-issuer/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/ehic-issuer/views/index.pug:/app/views/index.pug:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist # Not /dist here because of relative imports that assume dist/ and keys/, views/ etc. are sibling dirs
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G
wallet-enterprise-pda1-issuer:
container_name: wallet-enterprise-pda1-issuer
hostname: wallet-enterprise-pda1-issuer
build:
context: $PWD/wallet-enterprise
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-enterprise:dev-pda1
restart: always
ports:
- 8006:8006
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/pda1-issuer/datasets/:/datasets/:rw
- ./wallet-enterprise-configurations/pda1-issuer/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/pda1-issuer/keys:/app/keys:rw
- ./wallet-enterprise-configurations/pda1-issuer/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/pda1-issuer/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/pda1-issuer/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/pda1-issuer/views/index.pug:/app/views/index.pug:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist # Not /dist here because of relative imports that assume dist/ and keys/, views/ etc. are sibling dirs
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G
wallet-enterprise-acme-verifier:
container_name: wallet-enterprise-acme-verifier
hostname: wallet-enterprise-acme-verifier
build:
context: $PWD/wallet-enterprise
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-enterprise:dev-verifier
restart: on-failure
ports:
- 8005:8005
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./wallet-enterprise:/app:rw
- ./wallet-enterprise-configurations/acme-verifier/config/config.development.ts:/app/config/config.development.ts:rw
- ./wallet-enterprise-configurations/acme-verifier/keys:/app/keys:rw
- ./wallet-enterprise-configurations/acme-verifier/src/configuration:/app/src/configuration:rw
- ./wallet-enterprise-configurations/acme-verifier/public/styles/styles.css:/app/public/styles/styles.css:rw
- ./wallet-enterprise-configurations/acme-verifier/views/index.pug:/app/views/index.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/views/header.pug:/app/views/header.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/views/verifier/public_definitions.pug:/app/views/verifier/public_definitions.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/views/verifier/QR.pug:/app/views/verifier/QR.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/views/verifier/success.pug:/app/views/verifier/success.pug:rw
- ./wallet-enterprise-configurations/acme-verifier/public/images:/app/public/images:rw
- ./wallet-enterprise-configurations/acme-verifier/public/site.webmanifest:/app/public/site.webmanifest:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/dist
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G
wallet-db:
image: mariadb
container_name: wallet-db
hostname: wallet-db
restart: on-failure
ports:
- 127.0.0.1:3307:3307
expose:
- 3307
environment:
MARIADB_HOST: wallet-db
MARIADB_ROOT_PASSWORD: root
MARIADB_USER: myuser
MARIADB_PASSWORD:
MYSQL_TCP_PORT: 3307
MYSQL_UNIX_PORT: 3307
healthcheck:
test: ["CMD", "mariadb" ,"-uroot", "-proot", "--protocol=TCP", "-hlocalhost", "--port=3307", "-estatus"]
start_period: 60s
#start_interval: 5s # Not yet supported it seems, but upcoming: https://github.com/docker/compose/issues/10830
interval: 5s # Delete this line when start_interval becomes supported
timeout: 2s
volumes:
# persist data files into `datadir` volume managed by docker
- datadir:/var/lib/mysql
# bind-mount any sql files that should be run while initializing
- ./db-setup/scripts/:/docker-entrypoint-initdb.d/
# wallet-phpmyadmin:
# image: phpmyadmin/phpmyadmin:latest
# container_name: wallet-phpmyadmin
# hostname: wallet-phpmyadmin
# ports:
# - 8081:8081
# environment:
# APACHE_PORT: 8081
# PMA_HOST: wallet-db
# PMA_PORT: 3307
wallet-backend-server:
container_name: wallet-backend-server
build:
context: $PWD/wallet-backend-server
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-backend-server:dev
restart: on-failure
ports:
- 8002:8002
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./wallet-backend-server:/app:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /dist
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G
credential-status-list:
container_name: credential-status-list
build:
context: $PWD/credential-status-list
dockerfile: development.Dockerfile
secrets:
- npmrc
image: credential-status-list:dev
restart: on-failure
ports:
- 9001:9001
depends_on:
wallet-db:
condition: service_healthy
volumes:
- ./credential-status-list:/usr/src/app:rw
- ./.vscode/:/usr/src/app/.vscode:rw
- type: tmpfs
target: /dist
tmpfs:
mode: 01777
deploy:
resources:
limits:
memory: 1G
wallet-frontend:
build:
context: $PWD/wallet-frontend
dockerfile: development.Dockerfile
secrets:
- npmrc
image: wallet-frontend:dev
container_name: wallet-frontend
hostname: wallet-frontend
ports:
- 3000:3000
volumes:
- ./wallet-frontend/public:/app/public:rw
- ./wallet-frontend/src:/app/src:rw
- ./wallet-frontend/.env:/app/.env:rw
- ./.vscode/:/app/.vscode:rw
- type: tmpfs
target: /app/node_modules/.cache
tmpfs:
mode: 01777
resources-vault:
build:
context: $PWD/resources-vault
dockerfile: Dockerfile
image: resources-vault:dev
container_name: resources-vault
hostname: resources-vault
volumes:
- ./resources-vault/src/config/config.js:/app/src/config/config.js
- ./resources-vault/keys/:/app/keys/
depends_on:
wallet-db:
condition: service_healthy
ports:
- 6555:6555
volumes:
datadir:
cache:
driver: local
secrets:
npmrc:
file: ./.npmrc