@govuk-pay/cli 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resources/legacy-ruby-cli/config/secrets.yml +81 -9
- package/resources/legacy-ruby-cli/config/service_secrets.yml +25 -9
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/config.yaml +3 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/all.yaml +760 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/card.yaml +508 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/custom.yaml +71 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/java.yaml +456 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/certs/publicapi-proxy.crt +18 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/keys/publicapi-proxy.key +28 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/toolbox.yaml +473 -0
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local.rb +3 -2
- package/resources/legacy-ruby-cli/rds_access/connect.sh +30 -4
- package/resources/legacy-ruby-cli/vulnerability_scan/generate_vulnerability_report.js +52 -55
- package/resources/legacy-ruby-cli/vulnerability_scan/package.json +15 -0
- package/resources/legacy-ruby-cli/vulnerability_scan/scan.sh +56 -25
- package/resources/legacy-ruby-cli/vulnerability_scan/reports/.gitkeep +0 -0
|
@@ -0,0 +1,760 @@
|
|
|
1
|
+
version: '2.1'
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
|
|
5
|
+
adminusers_db:
|
|
6
|
+
image: postgres:15.2
|
|
7
|
+
environment:
|
|
8
|
+
- POSTGRES_PASSWORD=mysecretpassword
|
|
9
|
+
mem_limit: 250M
|
|
10
|
+
logging:
|
|
11
|
+
driver: "json-file"
|
|
12
|
+
container_name: adminusers_db
|
|
13
|
+
healthcheck:
|
|
14
|
+
test: ["CMD-SHELL", "pg_isready"]
|
|
15
|
+
interval: 10s
|
|
16
|
+
timeout: 5s
|
|
17
|
+
retries: 5
|
|
18
|
+
volumes:
|
|
19
|
+
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
20
|
+
ports:
|
|
21
|
+
- "19700:5432"
|
|
22
|
+
|
|
23
|
+
connector_db:
|
|
24
|
+
image: postgres:15.2
|
|
25
|
+
environment:
|
|
26
|
+
- POSTGRES_PASSWORD=mysecretpassword
|
|
27
|
+
mem_limit: 250M
|
|
28
|
+
logging:
|
|
29
|
+
driver: "json-file"
|
|
30
|
+
container_name: connector_db
|
|
31
|
+
healthcheck:
|
|
32
|
+
test: ["CMD-SHELL", "pg_isready"]
|
|
33
|
+
interval: 10s
|
|
34
|
+
timeout: 5s
|
|
35
|
+
retries: 5
|
|
36
|
+
volumes:
|
|
37
|
+
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
38
|
+
ports:
|
|
39
|
+
- "19300:5432"
|
|
40
|
+
|
|
41
|
+
publicauth_db:
|
|
42
|
+
image: postgres:15.2
|
|
43
|
+
environment:
|
|
44
|
+
- POSTGRES_PASSWORD=mysecretpassword
|
|
45
|
+
mem_limit: 250M
|
|
46
|
+
logging:
|
|
47
|
+
driver: "json-file"
|
|
48
|
+
container_name: publicauth_db
|
|
49
|
+
healthcheck:
|
|
50
|
+
test: ["CMD-SHELL", "pg_isready"]
|
|
51
|
+
interval: 10s
|
|
52
|
+
timeout: 5s
|
|
53
|
+
retries: 5
|
|
54
|
+
volumes:
|
|
55
|
+
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
56
|
+
ports:
|
|
57
|
+
- "19600:5432"
|
|
58
|
+
|
|
59
|
+
products_db:
|
|
60
|
+
image: postgres:15.2
|
|
61
|
+
environment:
|
|
62
|
+
- POSTGRES_PASSWORD=mysecretpassword
|
|
63
|
+
mem_limit: 250M
|
|
64
|
+
logging:
|
|
65
|
+
driver: "json-file"
|
|
66
|
+
container_name: products_db
|
|
67
|
+
healthcheck:
|
|
68
|
+
test: ["CMD-SHELL", "pg_isready"]
|
|
69
|
+
interval: 10s
|
|
70
|
+
timeout: 5s
|
|
71
|
+
retries: 5
|
|
72
|
+
volumes:
|
|
73
|
+
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
74
|
+
ports:
|
|
75
|
+
- "19800:5432"
|
|
76
|
+
|
|
77
|
+
ledger_db:
|
|
78
|
+
image: postgres:15.2
|
|
79
|
+
environment:
|
|
80
|
+
- POSTGRES_PASSWORD=mysecretpassword
|
|
81
|
+
mem_limit: 250M
|
|
82
|
+
logging:
|
|
83
|
+
driver: "json-file"
|
|
84
|
+
container_name: ledger_db
|
|
85
|
+
healthcheck:
|
|
86
|
+
test: ["CMD-SHELL", "pg_isready"]
|
|
87
|
+
interval: 10s
|
|
88
|
+
timeout: 5s
|
|
89
|
+
retries: 5
|
|
90
|
+
volumes:
|
|
91
|
+
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
92
|
+
ports:
|
|
93
|
+
- "20700:5432"
|
|
94
|
+
|
|
95
|
+
webhooks_db:
|
|
96
|
+
image: postgres:15.2
|
|
97
|
+
environment:
|
|
98
|
+
- POSTGRES_PASSWORD=mysecretpassword
|
|
99
|
+
mem_limit: 250M
|
|
100
|
+
logging:
|
|
101
|
+
driver: "json-file"
|
|
102
|
+
container_name: webhooks_db
|
|
103
|
+
healthcheck:
|
|
104
|
+
test: ["CMD-SHELL", "pg_isready"]
|
|
105
|
+
interval: 10s
|
|
106
|
+
timeout: 5s
|
|
107
|
+
retries: 5
|
|
108
|
+
volumes:
|
|
109
|
+
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
110
|
+
ports:
|
|
111
|
+
- "20800:5432"
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
adminusers:
|
|
115
|
+
image: governmentdigitalservice/pay-adminusers:latest-master
|
|
116
|
+
|
|
117
|
+
depends_on:
|
|
118
|
+
adminusers_db:
|
|
119
|
+
condition: service_healthy
|
|
120
|
+
|
|
121
|
+
env_file:
|
|
122
|
+
- services/java_app.env
|
|
123
|
+
- services/adminusers.env
|
|
124
|
+
environment:
|
|
125
|
+
- RUN_MIGRATION=true
|
|
126
|
+
- RUN_APP=true
|
|
127
|
+
- PORT=9700
|
|
128
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
129
|
+
|
|
130
|
+
- DB_HOST=adminusers_db
|
|
131
|
+
- DB_USER=adminusers
|
|
132
|
+
- DB_PASSWORD=mysecretpassword
|
|
133
|
+
- DB_SSL_OPTION=ssl=none
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
- AWS_ACCESS_KEY=mockAccessKey
|
|
138
|
+
- AWS_SECRET_ACCESS_KEY=mockSecretAccessKey
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- AWS_SQS_REGION=eu-west-1
|
|
143
|
+
- AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
|
|
144
|
+
- AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
|
|
145
|
+
- AWS_SQS_ENDPOINT=http://localstack:4566
|
|
146
|
+
- AWS_SQS_CONNECTOR_TASKS_QUEUE_URL=http://localstack:4566/000000000000/connector_tasks_queue
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
152
|
+
- CONNECTOR_URL=http://connector:9300
|
|
153
|
+
- CARDID_URL=http://cardid:9900
|
|
154
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
155
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
156
|
+
- PRODUCTS_URL=http://products:18000
|
|
157
|
+
- LEDGER_URL=http://ledger:10700
|
|
158
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
159
|
+
- FRONTEND_URL=http://localhost:9000
|
|
160
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
161
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
162
|
+
- STUBS_URL=http://localhost:3030
|
|
163
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
164
|
+
mem_limit: 2G
|
|
165
|
+
logging:
|
|
166
|
+
driver: "json-file"
|
|
167
|
+
ports:
|
|
168
|
+
- "9700:9700"
|
|
169
|
+
- "9701:9701"
|
|
170
|
+
container_name: adminusers
|
|
171
|
+
|
|
172
|
+
connector:
|
|
173
|
+
image: governmentdigitalservice/pay-connector:latest-master
|
|
174
|
+
|
|
175
|
+
depends_on:
|
|
176
|
+
connector_db:
|
|
177
|
+
condition: service_healthy
|
|
178
|
+
|
|
179
|
+
env_file:
|
|
180
|
+
- services/java_app.env
|
|
181
|
+
- services/connector.env
|
|
182
|
+
environment:
|
|
183
|
+
- RUN_MIGRATION=true
|
|
184
|
+
- RUN_APP=true
|
|
185
|
+
- PORT=9300
|
|
186
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
187
|
+
|
|
188
|
+
- DB_HOST=connector_db
|
|
189
|
+
- DB_USER=connector
|
|
190
|
+
- DB_PASSWORD=mysecretpassword
|
|
191
|
+
- DB_SSL_OPTION=ssl=none
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
- AWS_ACCESS_KEY=mockAccessKey
|
|
196
|
+
- AWS_SECRET_ACCESS_KEY=mockSecretAccessKey
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
- AWS_SQS_REGION=eu-west-1
|
|
201
|
+
- AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
|
|
202
|
+
- AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
|
|
203
|
+
- AWS_SQS_ENDPOINT=http://localstack:4566
|
|
204
|
+
- AWS_SQS_CAPTURE_QUEUE_URL=http://localstack:4566/000000000000/pay_capture_queue
|
|
205
|
+
- AWS_SQS_PAYMENT_EVENT_QUEUE_URL=http://localstack:4566/000000000000/pay_event_queue
|
|
206
|
+
- AWS_SQS_PAYOUT_RECONCILE_QUEUE_URL=http://localstack:4566/000000000000/payout_reconcile_queue
|
|
207
|
+
- AWS_SQS_CONNECTOR_TASKS_QUEUE_URL=http://localstack:4566/000000000000/connector_tasks_queue
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
213
|
+
- CONNECTOR_URL=http://connector:9300
|
|
214
|
+
- CARDID_URL=http://cardid:9900
|
|
215
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
216
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
217
|
+
- PRODUCTS_URL=http://products:18000
|
|
218
|
+
- LEDGER_URL=http://ledger:10700
|
|
219
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
220
|
+
- FRONTEND_URL=http://localhost:9000
|
|
221
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
222
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
223
|
+
- STUBS_URL=http://localhost:3030
|
|
224
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
225
|
+
mem_limit: 2G
|
|
226
|
+
logging:
|
|
227
|
+
driver: "json-file"
|
|
228
|
+
ports:
|
|
229
|
+
- "9300:9300"
|
|
230
|
+
- "9301:9301"
|
|
231
|
+
container_name: connector
|
|
232
|
+
|
|
233
|
+
cardid:
|
|
234
|
+
image: governmentdigitalservice/pay-cardid:latest-master
|
|
235
|
+
|
|
236
|
+
env_file:
|
|
237
|
+
- services/java_app.env
|
|
238
|
+
- services/cardid.env
|
|
239
|
+
environment:
|
|
240
|
+
- RUN_MIGRATION=true
|
|
241
|
+
- RUN_APP=true
|
|
242
|
+
- PORT=9900
|
|
243
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
253
|
+
- CONNECTOR_URL=http://connector:9300
|
|
254
|
+
- CARDID_URL=http://cardid:9900
|
|
255
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
256
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
257
|
+
- PRODUCTS_URL=http://products:18000
|
|
258
|
+
- LEDGER_URL=http://ledger:10700
|
|
259
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
260
|
+
- FRONTEND_URL=http://localhost:9000
|
|
261
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
262
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
263
|
+
- STUBS_URL=http://localhost:3030
|
|
264
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
265
|
+
mem_limit: 2G
|
|
266
|
+
logging:
|
|
267
|
+
driver: "json-file"
|
|
268
|
+
ports:
|
|
269
|
+
- "9900:9900"
|
|
270
|
+
- "9901:9901"
|
|
271
|
+
container_name: cardid
|
|
272
|
+
|
|
273
|
+
publicauth:
|
|
274
|
+
image: governmentdigitalservice/pay-publicauth:latest-master
|
|
275
|
+
|
|
276
|
+
depends_on:
|
|
277
|
+
publicauth_db:
|
|
278
|
+
condition: service_healthy
|
|
279
|
+
|
|
280
|
+
env_file:
|
|
281
|
+
- services/java_app.env
|
|
282
|
+
- services/publicauth.env
|
|
283
|
+
environment:
|
|
284
|
+
- RUN_MIGRATION=true
|
|
285
|
+
- RUN_APP=true
|
|
286
|
+
- PORT=9600
|
|
287
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
288
|
+
|
|
289
|
+
- DB_HOST=publicauth_db
|
|
290
|
+
- DB_USER=publicauth
|
|
291
|
+
- DB_PASSWORD=mysecretpassword
|
|
292
|
+
- DB_SSL_OPTION=ssl=none
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
302
|
+
- CONNECTOR_URL=http://connector:9300
|
|
303
|
+
- CARDID_URL=http://cardid:9900
|
|
304
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
305
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
306
|
+
- PRODUCTS_URL=http://products:18000
|
|
307
|
+
- LEDGER_URL=http://ledger:10700
|
|
308
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
309
|
+
- FRONTEND_URL=http://localhost:9000
|
|
310
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
311
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
312
|
+
- STUBS_URL=http://localhost:3030
|
|
313
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
314
|
+
mem_limit: 2G
|
|
315
|
+
logging:
|
|
316
|
+
driver: "json-file"
|
|
317
|
+
ports:
|
|
318
|
+
- "9600:9600"
|
|
319
|
+
- "9601:9601"
|
|
320
|
+
container_name: publicauth
|
|
321
|
+
|
|
322
|
+
publicapi:
|
|
323
|
+
image: governmentdigitalservice/pay-publicapi:latest-master
|
|
324
|
+
|
|
325
|
+
env_file:
|
|
326
|
+
- services/java_app.env
|
|
327
|
+
- services/publicapi.env
|
|
328
|
+
environment:
|
|
329
|
+
- RUN_MIGRATION=true
|
|
330
|
+
- RUN_APP=true
|
|
331
|
+
- PORT=9100
|
|
332
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
342
|
+
- CONNECTOR_URL=http://connector:9300
|
|
343
|
+
- CARDID_URL=http://cardid:9900
|
|
344
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
345
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
346
|
+
- PRODUCTS_URL=http://products:18000
|
|
347
|
+
- LEDGER_URL=http://ledger:10700
|
|
348
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
349
|
+
- FRONTEND_URL=http://localhost:9000
|
|
350
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
351
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
352
|
+
- STUBS_URL=http://localhost:3030
|
|
353
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
354
|
+
- REDIS_URL=redis
|
|
355
|
+
mem_limit: 2G
|
|
356
|
+
logging:
|
|
357
|
+
driver: "json-file"
|
|
358
|
+
ports:
|
|
359
|
+
- "9100:9100"
|
|
360
|
+
- "9101:9101"
|
|
361
|
+
container_name: publicapi
|
|
362
|
+
|
|
363
|
+
products:
|
|
364
|
+
image: governmentdigitalservice/pay-products:latest-master
|
|
365
|
+
|
|
366
|
+
depends_on:
|
|
367
|
+
products_db:
|
|
368
|
+
condition: service_healthy
|
|
369
|
+
|
|
370
|
+
env_file:
|
|
371
|
+
- services/java_app.env
|
|
372
|
+
- services/products.env
|
|
373
|
+
environment:
|
|
374
|
+
- RUN_MIGRATION=true
|
|
375
|
+
- RUN_APP=true
|
|
376
|
+
- PORT=18000
|
|
377
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
378
|
+
|
|
379
|
+
- DB_HOST=products_db
|
|
380
|
+
- DB_USER=products
|
|
381
|
+
- DB_PASSWORD=mysecretpassword
|
|
382
|
+
- DB_SSL_OPTION=ssl=none
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
392
|
+
- CONNECTOR_URL=http://connector:9300
|
|
393
|
+
- CARDID_URL=http://cardid:9900
|
|
394
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
395
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
396
|
+
- PRODUCTS_URL=http://products:18000
|
|
397
|
+
- LEDGER_URL=http://ledger:10700
|
|
398
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
399
|
+
- FRONTEND_URL=http://localhost:9000
|
|
400
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
401
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
402
|
+
- STUBS_URL=http://localhost:3030
|
|
403
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
404
|
+
mem_limit: 2G
|
|
405
|
+
logging:
|
|
406
|
+
driver: "json-file"
|
|
407
|
+
ports:
|
|
408
|
+
- "18000:18000"
|
|
409
|
+
- "18001:18001"
|
|
410
|
+
container_name: products
|
|
411
|
+
|
|
412
|
+
ledger:
|
|
413
|
+
image: governmentdigitalservice/pay-ledger:latest-master
|
|
414
|
+
|
|
415
|
+
depends_on:
|
|
416
|
+
ledger_db:
|
|
417
|
+
condition: service_healthy
|
|
418
|
+
|
|
419
|
+
env_file:
|
|
420
|
+
- services/java_app.env
|
|
421
|
+
- services/ledger.env
|
|
422
|
+
environment:
|
|
423
|
+
- RUN_MIGRATION=true
|
|
424
|
+
- RUN_APP=true
|
|
425
|
+
- PORT=10700
|
|
426
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
427
|
+
|
|
428
|
+
- DB_HOST=ledger_db
|
|
429
|
+
- DB_USER=ledger
|
|
430
|
+
- DB_PASSWORD=mysecretpassword
|
|
431
|
+
- DB_SSL_OPTION=ssl=none
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
- AWS_ACCESS_KEY=mockAccessKey
|
|
436
|
+
- AWS_SECRET_ACCESS_KEY=mockSecretAccessKey
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
- AWS_SQS_REGION=eu-west-1
|
|
441
|
+
- AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
|
|
442
|
+
- AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
|
|
443
|
+
- AWS_SQS_ENDPOINT=http://localstack:4566
|
|
444
|
+
- AWS_SQS_PAYMENT_EVENT_QUEUE_URL=http://localstack:4566/000000000000/pay_event_queue
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
- AWS_SNS_NON_STANDARD_SERVICE_ENDPOINT=true
|
|
449
|
+
- AWS_SNS_ENDPOINT=http://localstack:4566
|
|
450
|
+
- AWS_SNS_REGION=eu-west-1
|
|
451
|
+
- SNS_TOPIC_CARD_PAYMENT_EVENTS_ARN=arn:aws:sns:eu-west-1:000000000000:card-payment-events-topic
|
|
452
|
+
- SNS_TOPIC_CARD_PAYMENT_DISPUTE_EVENTS_ARN=arn:aws:sns:eu-west-1:000000000000:card-payment-dispute-events-topic
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
456
|
+
- CONNECTOR_URL=http://connector:9300
|
|
457
|
+
- CARDID_URL=http://cardid:9900
|
|
458
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
459
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
460
|
+
- PRODUCTS_URL=http://products:18000
|
|
461
|
+
- LEDGER_URL=http://ledger:10700
|
|
462
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
463
|
+
- FRONTEND_URL=http://localhost:9000
|
|
464
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
465
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
466
|
+
- STUBS_URL=http://localhost:3030
|
|
467
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
468
|
+
- SNS_ENABLED=true
|
|
469
|
+
- PUBLISH_CARD_PAYMENT_EVENTS_TO_SNS=true
|
|
470
|
+
- PUBLISH_CARD_PAYMENT_DISPUTE_EVENTS_TO_SNS=true
|
|
471
|
+
mem_limit: 2G
|
|
472
|
+
logging:
|
|
473
|
+
driver: "json-file"
|
|
474
|
+
ports:
|
|
475
|
+
- "10700:10700"
|
|
476
|
+
- "10701:10701"
|
|
477
|
+
container_name: ledger
|
|
478
|
+
|
|
479
|
+
webhooks:
|
|
480
|
+
image: governmentdigitalservice/pay-webhooks:latest-master
|
|
481
|
+
|
|
482
|
+
depends_on:
|
|
483
|
+
webhooks_db:
|
|
484
|
+
condition: service_healthy
|
|
485
|
+
|
|
486
|
+
env_file:
|
|
487
|
+
- services/java_app.env
|
|
488
|
+
- services/webhooks.env
|
|
489
|
+
environment:
|
|
490
|
+
- RUN_MIGRATION=true
|
|
491
|
+
- RUN_APP=true
|
|
492
|
+
- PORT=10800
|
|
493
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
494
|
+
|
|
495
|
+
- DB_HOST=webhooks_db
|
|
496
|
+
- DB_USER=webhooks
|
|
497
|
+
- DB_PASSWORD=mysecretpassword
|
|
498
|
+
- DB_SSL_OPTION=ssl=none
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
- AWS_ACCESS_KEY=mockAccessKey
|
|
503
|
+
- AWS_SECRET_ACCESS_KEY=mockSecretAccessKey
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
- AWS_SQS_REGION=eu-west-1
|
|
508
|
+
- AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
|
|
509
|
+
- AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
|
|
510
|
+
- AWS_SQS_ENDPOINT=http://localstack:4566
|
|
511
|
+
- AWS_SQS_PAYMENT_EVENT_QUEUE_URL=http://localstack:4566/000000000000/webhooks-events-subscriber-queue
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
517
|
+
- CONNECTOR_URL=http://connector:9300
|
|
518
|
+
- CARDID_URL=http://cardid:9900
|
|
519
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
520
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
521
|
+
- PRODUCTS_URL=http://products:18000
|
|
522
|
+
- LEDGER_URL=http://ledger:10700
|
|
523
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
524
|
+
- FRONTEND_URL=http://localhost:9000
|
|
525
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
526
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
527
|
+
- STUBS_URL=http://localhost:3030
|
|
528
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
529
|
+
mem_limit: 2G
|
|
530
|
+
logging:
|
|
531
|
+
driver: "json-file"
|
|
532
|
+
ports:
|
|
533
|
+
- "10800:10800"
|
|
534
|
+
- "10801:10801"
|
|
535
|
+
container_name: webhooks
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
selfservice:
|
|
540
|
+
image: governmentdigitalservice/pay-selfservice:latest-master
|
|
541
|
+
|
|
542
|
+
env_file: services/selfservice.env
|
|
543
|
+
environment:
|
|
544
|
+
- SECURE_COOKIE_OFF=true
|
|
545
|
+
- NODE_ENV=${NODE_ENV:-production}
|
|
546
|
+
- RUN_APP=true
|
|
547
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
548
|
+
- PORT=9400
|
|
549
|
+
|
|
550
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
551
|
+
|
|
552
|
+
- CONNECTOR_URL=http://connector:9300
|
|
553
|
+
|
|
554
|
+
- CARDID_URL=http://cardid:9900
|
|
555
|
+
|
|
556
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
557
|
+
|
|
558
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
559
|
+
|
|
560
|
+
- PRODUCTS_URL=http://products:18000
|
|
561
|
+
|
|
562
|
+
- LEDGER_URL=http://ledger:10700
|
|
563
|
+
|
|
564
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
565
|
+
- FRONTEND_URL=http://localhost:9000
|
|
566
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
567
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
568
|
+
- STUBS_URL=http://localhost:3030
|
|
569
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
570
|
+
mem_limit: 1G
|
|
571
|
+
working_dir: '/app'
|
|
572
|
+
entrypoint: 'npm start'
|
|
573
|
+
ports:
|
|
574
|
+
- "9400:9400"
|
|
575
|
+
logging:
|
|
576
|
+
driver: "json-file"
|
|
577
|
+
container_name: selfservice
|
|
578
|
+
|
|
579
|
+
products-ui:
|
|
580
|
+
image: governmentdigitalservice/pay-products-ui:latest-master
|
|
581
|
+
|
|
582
|
+
env_file: services/products-ui.env
|
|
583
|
+
environment:
|
|
584
|
+
- SECURE_COOKIE_OFF=true
|
|
585
|
+
- NODE_ENV=${NODE_ENV:-production}
|
|
586
|
+
- RUN_APP=true
|
|
587
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
588
|
+
- PORT=10400
|
|
589
|
+
|
|
590
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
591
|
+
|
|
592
|
+
- CONNECTOR_URL=http://connector:9300
|
|
593
|
+
|
|
594
|
+
- CARDID_URL=http://cardid:9900
|
|
595
|
+
|
|
596
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
597
|
+
|
|
598
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
599
|
+
|
|
600
|
+
- PRODUCTS_URL=http://products:18000
|
|
601
|
+
|
|
602
|
+
- LEDGER_URL=http://ledger:10700
|
|
603
|
+
|
|
604
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
605
|
+
- FRONTEND_URL=http://localhost:9000
|
|
606
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
607
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
608
|
+
- STUBS_URL=http://localhost:3030
|
|
609
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
610
|
+
mem_limit: 1G
|
|
611
|
+
working_dir: '/app'
|
|
612
|
+
entrypoint: 'npm start'
|
|
613
|
+
ports:
|
|
614
|
+
- "10400:10400"
|
|
615
|
+
logging:
|
|
616
|
+
driver: "json-file"
|
|
617
|
+
container_name: products-ui
|
|
618
|
+
|
|
619
|
+
stubs:
|
|
620
|
+
image: governmentdigitalservice/pay-stubs:latest-master
|
|
621
|
+
|
|
622
|
+
env_file: services/stubs.env
|
|
623
|
+
environment:
|
|
624
|
+
- SECURE_COOKIE_OFF=true
|
|
625
|
+
- NODE_ENV=${NODE_ENV:-production}
|
|
626
|
+
- RUN_APP=true
|
|
627
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
628
|
+
- PORT=3030
|
|
629
|
+
|
|
630
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
631
|
+
|
|
632
|
+
- CONNECTOR_URL=http://connector:9300
|
|
633
|
+
|
|
634
|
+
- CARDID_URL=http://cardid:9900
|
|
635
|
+
|
|
636
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
637
|
+
|
|
638
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
639
|
+
|
|
640
|
+
- PRODUCTS_URL=http://products:18000
|
|
641
|
+
|
|
642
|
+
- LEDGER_URL=http://ledger:10700
|
|
643
|
+
|
|
644
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
645
|
+
- FRONTEND_URL=http://localhost:9000
|
|
646
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
647
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
648
|
+
- STUBS_URL=http://localhost:3030
|
|
649
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
650
|
+
mem_limit: 1G
|
|
651
|
+
working_dir: '/app'
|
|
652
|
+
entrypoint: 'npm start'
|
|
653
|
+
ports:
|
|
654
|
+
- "3030:3030"
|
|
655
|
+
logging:
|
|
656
|
+
driver: "json-file"
|
|
657
|
+
container_name: stubs
|
|
658
|
+
|
|
659
|
+
toolbox:
|
|
660
|
+
image: governmentdigitalservice/pay-toolbox:latest-master
|
|
661
|
+
|
|
662
|
+
env_file: services/toolbox.env
|
|
663
|
+
environment:
|
|
664
|
+
- SECURE_COOKIE_OFF=true
|
|
665
|
+
- NODE_ENV=${NODE_ENV:-production}
|
|
666
|
+
- RUN_APP=true
|
|
667
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
668
|
+
- PORT=3040
|
|
669
|
+
|
|
670
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
671
|
+
|
|
672
|
+
- CONNECTOR_URL=http://connector:9300
|
|
673
|
+
|
|
674
|
+
- CARDID_URL=http://cardid:9900
|
|
675
|
+
|
|
676
|
+
- PUBLIC_AUTH_URL=http://publicauth:9600
|
|
677
|
+
|
|
678
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
679
|
+
|
|
680
|
+
- PRODUCTS_URL=http://products:18000
|
|
681
|
+
|
|
682
|
+
- LEDGER_URL=http://ledger:10700
|
|
683
|
+
|
|
684
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
685
|
+
- FRONTEND_URL=http://localhost:9000
|
|
686
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
687
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
688
|
+
- STUBS_URL=http://localhost:3030
|
|
689
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
690
|
+
mem_limit: 1G
|
|
691
|
+
working_dir: '/app'
|
|
692
|
+
entrypoint: 'npm start'
|
|
693
|
+
ports:
|
|
694
|
+
- "3040:3040"
|
|
695
|
+
logging:
|
|
696
|
+
driver: "json-file"
|
|
697
|
+
container_name: toolbox
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
frontend:
|
|
701
|
+
image: governmentdigitalservice/pay-frontend:local
|
|
702
|
+
|
|
703
|
+
env_file: services/frontend.env
|
|
704
|
+
environment:
|
|
705
|
+
- SECURE_COOKIE_OFF=true
|
|
706
|
+
- RUN_APP=true
|
|
707
|
+
- DISABLE_APPMETRICS=true
|
|
708
|
+
- DISABLE_INTERNAL_HTTPS=true
|
|
709
|
+
- PORT=9000
|
|
710
|
+
|
|
711
|
+
- ADMINUSERS_URL=http://adminusers:9700
|
|
712
|
+
|
|
713
|
+
- CONNECTOR_URL=http://connector:9300
|
|
714
|
+
|
|
715
|
+
- CARDID_URL=http://cardid:9900
|
|
716
|
+
|
|
717
|
+
- PUBLICAUTH_URL=http://publicauth:9600
|
|
718
|
+
|
|
719
|
+
- PUBLICAPI_URL=http://publicapi:9100
|
|
720
|
+
|
|
721
|
+
- PRODUCTS_URL=http://products:18000
|
|
722
|
+
|
|
723
|
+
- LEDGER_URL=http://ledger:10700
|
|
724
|
+
|
|
725
|
+
- WEBHOOKS_URL=http://webhooks:10800
|
|
726
|
+
- FRONTEND_URL=http://localhost:9000
|
|
727
|
+
- SELFSERVICE_URL=http://localhost:9400
|
|
728
|
+
- PRODUCTS-UI_URL=http://localhost:10400
|
|
729
|
+
- STUBS_URL=http://localhost:3030
|
|
730
|
+
- TOOLBOX_URL=http://localhost:3040
|
|
731
|
+
mem_limit: 1G
|
|
732
|
+
working_dir: '/app'
|
|
733
|
+
entrypoint: npx nodemon --inspect=0.0.0.0:9001 start.js
|
|
734
|
+
ports:
|
|
735
|
+
- "9000:9000"
|
|
736
|
+
- "9001:9001"
|
|
737
|
+
logging:
|
|
738
|
+
driver: "json-file"
|
|
739
|
+
container_name: frontend
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
localstack:
|
|
744
|
+
image: localstack/localstack:3
|
|
745
|
+
container_name: localstack
|
|
746
|
+
environment:
|
|
747
|
+
- EAGER_SERVICE_LOADING=1
|
|
748
|
+
- SERVICES=sns,sqs
|
|
749
|
+
ports:
|
|
750
|
+
- "4566:4566" # All AWS services exposed on this port
|
|
751
|
+
volumes:
|
|
752
|
+
- /Users/jonathan.harden/gitdevel/github.com/alphagov/pay-infra/cli/lib/pay_cli/commands/local/files/localstack/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
redis:
|
|
756
|
+
image: redis:latest
|
|
757
|
+
container_name: localRedis
|
|
758
|
+
ports:
|
|
759
|
+
- "6379:6379"
|
|
760
|
+
|