@govuk-pay/cli 0.0.16 → 0.0.18

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.
Files changed (28) hide show
  1. package/package.json +4 -1
  2. package/resources/legacy-ruby-cli/README.md +10 -3
  3. package/resources/legacy-ruby-cli/config/secrets.yml +35 -64
  4. package/resources/legacy-ruby-cli/config/service_secrets.yml +4 -7
  5. package/resources/legacy-ruby-cli/lib/pay_cli/commands/aws.rb +0 -22
  6. package/resources/legacy-ruby-cli/lib/pay_cli/commands/doctor.rb +0 -1
  7. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/config.rb +4 -0
  8. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/config.yaml +2 -0
  9. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/docker.rb +33 -3
  10. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/all.yaml +120 -54
  11. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/card.yaml +25 -42
  12. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/docker-compose.erb +110 -5
  13. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/egress/squid.conf +47 -0
  14. package/resources/legacy-ruby-cli/lib/pay_cli/commands/local.rb +40 -9
  15. package/resources/legacy-ruby-cli/lib/pay_cli/commands/ssm.rb +7 -60
  16. package/resources/legacy-ruby-cli/lib/pay_cli/entry_point.rb +0 -11
  17. package/resources/legacy-ruby-cli/lib/pay_cli/environment.rb +1 -1
  18. package/resources/legacy-ruby-cli/lib/pay_cli/secrets.rb +1 -1
  19. package/resources/usageDetails.txt +1 -0
  20. package/src/commands/tunnel.js +370 -0
  21. package/src/core/commandRouter.js +4 -0
  22. package/src/core/constants.js +19 -1
  23. package/resources/legacy-ruby-cli/lib/pay_cli/aws/document.rb +0 -23
  24. package/resources/legacy-ruby-cli/lib/pay_cli/ec2.rb +0 -38
  25. package/resources/legacy-ruby-cli/vulnerability_scan/.nvmrc +0 -1
  26. package/resources/legacy-ruby-cli/vulnerability_scan/generate_vulnerability_report.js +0 -88
  27. package/resources/legacy-ruby-cli/vulnerability_scan/package.json +0 -15
  28. package/resources/legacy-ruby-cli/vulnerability_scan/scan.sh +0 -88
@@ -1,9 +1,7 @@
1
- version: '2.1'
2
-
3
1
  services:
4
2
 
5
3
  adminusers_db:
6
- image: postgres:15.2
4
+ image: postgres:15.6
7
5
  environment:
8
6
  - POSTGRES_PASSWORD=mysecretpassword
9
7
  mem_limit: 250M
@@ -11,7 +9,7 @@ services:
11
9
  driver: "json-file"
12
10
  container_name: adminusers_db
13
11
  healthcheck:
14
- test: ["CMD-SHELL", "pg_isready"]
12
+ test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
15
13
  interval: 10s
16
14
  timeout: 5s
17
15
  retries: 5
@@ -19,9 +17,11 @@ services:
19
17
  - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
20
18
  ports:
21
19
  - "19700:5432"
20
+ networks:
21
+ - pay_local_mimic_aws_vpc
22
22
 
23
23
  connector_db:
24
- image: postgres:15.2
24
+ image: postgres:15.6
25
25
  environment:
26
26
  - POSTGRES_PASSWORD=mysecretpassword
27
27
  mem_limit: 250M
@@ -29,7 +29,7 @@ services:
29
29
  driver: "json-file"
30
30
  container_name: connector_db
31
31
  healthcheck:
32
- test: ["CMD-SHELL", "pg_isready"]
32
+ test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
33
33
  interval: 10s
34
34
  timeout: 5s
35
35
  retries: 5
@@ -37,9 +37,11 @@ services:
37
37
  - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
38
38
  ports:
39
39
  - "19300:5432"
40
+ networks:
41
+ - pay_local_mimic_aws_vpc
40
42
 
41
43
  publicauth_db:
42
- image: postgres:15.2
44
+ image: postgres:15.6
43
45
  environment:
44
46
  - POSTGRES_PASSWORD=mysecretpassword
45
47
  mem_limit: 250M
@@ -47,7 +49,7 @@ services:
47
49
  driver: "json-file"
48
50
  container_name: publicauth_db
49
51
  healthcheck:
50
- test: ["CMD-SHELL", "pg_isready"]
52
+ test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
51
53
  interval: 10s
52
54
  timeout: 5s
53
55
  retries: 5
@@ -55,9 +57,11 @@ services:
55
57
  - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
56
58
  ports:
57
59
  - "19600:5432"
60
+ networks:
61
+ - pay_local_mimic_aws_vpc
58
62
 
59
63
  products_db:
60
- image: postgres:15.2
64
+ image: postgres:15.6
61
65
  environment:
62
66
  - POSTGRES_PASSWORD=mysecretpassword
63
67
  mem_limit: 250M
@@ -65,7 +69,7 @@ services:
65
69
  driver: "json-file"
66
70
  container_name: products_db
67
71
  healthcheck:
68
- test: ["CMD-SHELL", "pg_isready"]
72
+ test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
69
73
  interval: 10s
70
74
  timeout: 5s
71
75
  retries: 5
@@ -73,9 +77,11 @@ services:
73
77
  - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
74
78
  ports:
75
79
  - "19800:5432"
80
+ networks:
81
+ - pay_local_mimic_aws_vpc
76
82
 
77
83
  ledger_db:
78
- image: postgres:15.2
84
+ image: postgres:15.6
79
85
  environment:
80
86
  - POSTGRES_PASSWORD=mysecretpassword
81
87
  mem_limit: 250M
@@ -83,7 +89,7 @@ services:
83
89
  driver: "json-file"
84
90
  container_name: ledger_db
85
91
  healthcheck:
86
- test: ["CMD-SHELL", "pg_isready"]
92
+ test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
87
93
  interval: 10s
88
94
  timeout: 5s
89
95
  retries: 5
@@ -91,9 +97,11 @@ services:
91
97
  - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
92
98
  ports:
93
99
  - "20700:5432"
100
+ networks:
101
+ - pay_local_mimic_aws_vpc
94
102
 
95
103
  webhooks_db:
96
- image: postgres:15.2
104
+ image: postgres:15.6
97
105
  environment:
98
106
  - POSTGRES_PASSWORD=mysecretpassword
99
107
  mem_limit: 250M
@@ -101,7 +109,7 @@ services:
101
109
  driver: "json-file"
102
110
  container_name: webhooks_db
103
111
  healthcheck:
104
- test: ["CMD-SHELL", "pg_isready"]
112
+ test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"]
105
113
  interval: 10s
106
114
  timeout: 5s
107
115
  retries: 5
@@ -109,6 +117,8 @@ services:
109
117
  - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
110
118
  ports:
111
119
  - "20800:5432"
120
+ networks:
121
+ - pay_local_mimic_aws_vpc
112
122
 
113
123
 
114
124
  adminusers:
@@ -139,6 +149,8 @@ services:
139
149
 
140
150
 
141
151
 
152
+
153
+
142
154
  - AWS_SQS_REGION=eu-west-1
143
155
  - AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
144
156
  - AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
@@ -168,6 +180,8 @@ services:
168
180
  - "9700:9700"
169
181
  - "9701:9701"
170
182
  container_name: adminusers
183
+ networks:
184
+ - pay_local_mimic_aws_vpc
171
185
 
172
186
  connector:
173
187
  image: governmentdigitalservice/pay-connector:latest-master
@@ -197,6 +211,8 @@ services:
197
211
 
198
212
 
199
213
 
214
+
215
+
200
216
  - AWS_SQS_REGION=eu-west-1
201
217
  - AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
202
218
  - AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
@@ -229,6 +245,8 @@ services:
229
245
  - "9300:9300"
230
246
  - "9301:9301"
231
247
  container_name: connector
248
+ networks:
249
+ - pay_local_mimic_aws_vpc
232
250
 
233
251
  cardid:
234
252
  image: governmentdigitalservice/pay-cardid:latest-master
@@ -249,6 +267,8 @@ services:
249
267
 
250
268
 
251
269
 
270
+
271
+
252
272
  - ADMINUSERS_URL=http://adminusers:9700
253
273
  - CONNECTOR_URL=http://connector:9300
254
274
  - CARDID_URL=http://cardid:9900
@@ -269,6 +289,8 @@ services:
269
289
  - "9900:9900"
270
290
  - "9901:9901"
271
291
  container_name: cardid
292
+ networks:
293
+ - pay_local_mimic_aws_vpc
272
294
 
273
295
  publicauth:
274
296
  image: governmentdigitalservice/pay-publicauth:latest-master
@@ -298,6 +320,8 @@ services:
298
320
 
299
321
 
300
322
 
323
+
324
+
301
325
  - ADMINUSERS_URL=http://adminusers:9700
302
326
  - CONNECTOR_URL=http://connector:9300
303
327
  - CARDID_URL=http://cardid:9900
@@ -318,6 +342,8 @@ services:
318
342
  - "9600:9600"
319
343
  - "9601:9601"
320
344
  container_name: publicauth
345
+ networks:
346
+ - pay_local_mimic_aws_vpc
321
347
 
322
348
  publicapi:
323
349
  image: governmentdigitalservice/pay-publicapi:latest-master
@@ -338,6 +364,8 @@ services:
338
364
 
339
365
 
340
366
 
367
+
368
+
341
369
  - ADMINUSERS_URL=http://adminusers:9700
342
370
  - CONNECTOR_URL=http://connector:9300
343
371
  - CARDID_URL=http://cardid:9900
@@ -359,6 +387,8 @@ services:
359
387
  - "9100:9100"
360
388
  - "9101:9101"
361
389
  container_name: publicapi
390
+ networks:
391
+ - pay_local_mimic_aws_vpc
362
392
 
363
393
  products:
364
394
  image: governmentdigitalservice/pay-products:latest-master
@@ -388,6 +418,8 @@ services:
388
418
 
389
419
 
390
420
 
421
+
422
+
391
423
  - ADMINUSERS_URL=http://adminusers:9700
392
424
  - CONNECTOR_URL=http://connector:9300
393
425
  - CARDID_URL=http://cardid:9900
@@ -408,6 +440,8 @@ services:
408
440
  - "18000:18000"
409
441
  - "18001:18001"
410
442
  container_name: products
443
+ networks:
444
+ - pay_local_mimic_aws_vpc
411
445
 
412
446
  ledger:
413
447
  image: governmentdigitalservice/pay-ledger:latest-master
@@ -437,6 +471,8 @@ services:
437
471
 
438
472
 
439
473
 
474
+
475
+
440
476
  - AWS_SQS_REGION=eu-west-1
441
477
  - AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
442
478
  - AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
@@ -475,6 +511,8 @@ services:
475
511
  - "10700:10700"
476
512
  - "10701:10701"
477
513
  container_name: ledger
514
+ networks:
515
+ - pay_local_mimic_aws_vpc
478
516
 
479
517
  webhooks:
480
518
  image: governmentdigitalservice/pay-webhooks:latest-master
@@ -504,6 +542,8 @@ services:
504
542
 
505
543
 
506
544
 
545
+
546
+
507
547
  - AWS_SQS_REGION=eu-west-1
508
548
  - AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS=20
509
549
  - AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT=true
@@ -533,19 +573,21 @@ services:
533
573
  - "10800:10800"
534
574
  - "10801:10801"
535
575
  container_name: webhooks
576
+ networks:
577
+ - pay_local_mimic_aws_vpc
536
578
 
537
579
 
538
580
 
539
- selfservice:
540
- image: governmentdigitalservice/pay-selfservice:latest-master
581
+ frontend:
582
+ image: governmentdigitalservice/pay-frontend:latest-master
541
583
 
542
- env_file: services/selfservice.env
584
+ env_file: services/frontend.env
543
585
  environment:
544
586
  - SECURE_COOKIE_OFF=true
545
- - NODE_ENV=${NODE_ENV:-production}
546
587
  - RUN_APP=true
547
588
  - DISABLE_INTERNAL_HTTPS=true
548
- - PORT=9400
589
+ - PORT=9000
590
+
549
591
 
550
592
  - ADMINUSERS_URL=http://adminusers:9700
551
593
 
@@ -571,21 +613,23 @@ services:
571
613
  working_dir: '/app'
572
614
  entrypoint: 'npm start'
573
615
  ports:
574
- - "9400:9400"
616
+ - "9000:9000"
575
617
  logging:
576
618
  driver: "json-file"
577
- container_name: selfservice
619
+ container_name: frontend
620
+ networks:
621
+ - pay_local_mimic_aws_vpc
578
622
 
579
- products-ui:
580
- image: governmentdigitalservice/pay-products-ui:latest-master
623
+ selfservice:
624
+ image: governmentdigitalservice/pay-selfservice:latest-master
581
625
 
582
- env_file: services/products-ui.env
626
+ env_file: services/selfservice.env
583
627
  environment:
584
628
  - SECURE_COOKIE_OFF=true
585
- - NODE_ENV=${NODE_ENV:-production}
586
629
  - RUN_APP=true
587
630
  - DISABLE_INTERNAL_HTTPS=true
588
- - PORT=10400
631
+ - PORT=9400
632
+
589
633
 
590
634
  - ADMINUSERS_URL=http://adminusers:9700
591
635
 
@@ -611,21 +655,23 @@ services:
611
655
  working_dir: '/app'
612
656
  entrypoint: 'npm start'
613
657
  ports:
614
- - "10400:10400"
658
+ - "9400:9400"
615
659
  logging:
616
660
  driver: "json-file"
617
- container_name: products-ui
661
+ container_name: selfservice
662
+ networks:
663
+ - pay_local_mimic_aws_vpc
618
664
 
619
- stubs:
620
- image: governmentdigitalservice/pay-stubs:latest-master
665
+ products-ui:
666
+ image: governmentdigitalservice/pay-products-ui:latest-master
621
667
 
622
- env_file: services/stubs.env
668
+ env_file: services/products-ui.env
623
669
  environment:
624
670
  - SECURE_COOKIE_OFF=true
625
- - NODE_ENV=${NODE_ENV:-production}
626
671
  - RUN_APP=true
627
672
  - DISABLE_INTERNAL_HTTPS=true
628
- - PORT=3030
673
+ - PORT=10400
674
+
629
675
 
630
676
  - ADMINUSERS_URL=http://adminusers:9700
631
677
 
@@ -651,21 +697,23 @@ services:
651
697
  working_dir: '/app'
652
698
  entrypoint: 'npm start'
653
699
  ports:
654
- - "3030:3030"
700
+ - "10400:10400"
655
701
  logging:
656
702
  driver: "json-file"
657
- container_name: stubs
703
+ container_name: products-ui
704
+ networks:
705
+ - pay_local_mimic_aws_vpc
658
706
 
659
- toolbox:
660
- image: governmentdigitalservice/pay-toolbox:latest-master
707
+ stubs:
708
+ image: governmentdigitalservice/pay-stubs:latest-master
661
709
 
662
- env_file: services/toolbox.env
710
+ env_file: services/stubs.env
663
711
  environment:
664
712
  - SECURE_COOKIE_OFF=true
665
- - NODE_ENV=${NODE_ENV:-production}
666
713
  - RUN_APP=true
667
714
  - DISABLE_INTERNAL_HTTPS=true
668
- - PORT=3040
715
+ - PORT=3030
716
+
669
717
 
670
718
  - ADMINUSERS_URL=http://adminusers:9700
671
719
 
@@ -673,7 +721,7 @@ services:
673
721
 
674
722
  - CARDID_URL=http://cardid:9900
675
723
 
676
- - PUBLIC_AUTH_URL=http://publicauth:9600
724
+ - PUBLICAUTH_URL=http://publicauth:9600
677
725
 
678
726
  - PUBLICAPI_URL=http://publicapi:9100
679
727
 
@@ -691,22 +739,23 @@ services:
691
739
  working_dir: '/app'
692
740
  entrypoint: 'npm start'
693
741
  ports:
694
- - "3040:3040"
742
+ - "3030:3030"
695
743
  logging:
696
744
  driver: "json-file"
697
- container_name: toolbox
698
-
745
+ container_name: stubs
746
+ networks:
747
+ - pay_local_mimic_aws_vpc
699
748
 
700
- frontend:
701
- image: governmentdigitalservice/pay-frontend:local
749
+ toolbox:
750
+ image: governmentdigitalservice/pay-toolbox:latest-master
702
751
 
703
- env_file: services/frontend.env
752
+ env_file: services/toolbox.env
704
753
  environment:
705
754
  - SECURE_COOKIE_OFF=true
706
755
  - RUN_APP=true
707
- - DISABLE_APPMETRICS=true
708
756
  - DISABLE_INTERNAL_HTTPS=true
709
- - PORT=9000
757
+ - PORT=3040
758
+
710
759
 
711
760
  - ADMINUSERS_URL=http://adminusers:9700
712
761
 
@@ -714,7 +763,7 @@ services:
714
763
 
715
764
  - CARDID_URL=http://cardid:9900
716
765
 
717
- - PUBLICAUTH_URL=http://publicauth:9600
766
+ - PUBLIC_AUTH_URL=http://publicauth:9600
718
767
 
719
768
  - PUBLICAPI_URL=http://publicapi:9100
720
769
 
@@ -730,13 +779,15 @@ services:
730
779
  - TOOLBOX_URL=http://localhost:3040
731
780
  mem_limit: 1G
732
781
  working_dir: '/app'
733
- entrypoint: npx nodemon --inspect=0.0.0.0:9001 start.js
782
+ entrypoint: 'npm start'
734
783
  ports:
735
- - "9000:9000"
736
- - "9001:9001"
784
+ - "3040:3040"
737
785
  logging:
738
786
  driver: "json-file"
739
- container_name: frontend
787
+ container_name: toolbox
788
+ networks:
789
+ - pay_local_mimic_aws_vpc
790
+
740
791
 
741
792
 
742
793
 
@@ -750,6 +801,8 @@ services:
750
801
  - "4566:4566" # All AWS services exposed on this port
751
802
  volumes:
752
803
  - /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
804
+ networks:
805
+ - pay_local_mimic_aws_vpc
753
806
 
754
807
 
755
808
  redis:
@@ -757,4 +810,17 @@ services:
757
810
  container_name: localRedis
758
811
  ports:
759
812
  - "6379:6379"
813
+ networks:
814
+ - pay_local_mimic_aws_vpc
760
815
 
816
+
817
+
818
+ networks:
819
+ pay_local_mimic_aws_vpc:
820
+ name: pay_local_mimic_aws_vpc
821
+ driver_opts:
822
+ com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"
823
+ ipam:
824
+ driver: default
825
+ config:
826
+ - subnet: 172.18.0.0/24
@@ -93,9 +93,8 @@ services:
93
93
  - "20800:5432"
94
94
 
95
95
 
96
-
97
96
  adminusers:
98
- image: governmentdigitalservice/pay-adminusers:local
97
+ image: governmentdigitalservice/pay-adminusers:latest-master
99
98
 
100
99
  depends_on:
101
100
  adminusers_db:
@@ -139,18 +138,16 @@ services:
139
138
  - LEDGER_URL=http://ledger:10700
140
139
  - WEBHOOKS_URL=http://webhooks:10800
141
140
  - FRONTEND_URL=http://localhost:9000
142
- working_dir: '/app'
143
141
  mem_limit: 2G
144
- user: root
145
142
  logging:
146
143
  driver: "json-file"
147
144
  ports:
148
- - "9700:9700"
149
- - "9701:9701"
145
+ - "9700:9700"
146
+ - "9701:9701"
150
147
  container_name: adminusers
151
148
 
152
149
  connector:
153
- image: governmentdigitalservice/pay-connector:local
150
+ image: governmentdigitalservice/pay-connector:latest-master
154
151
 
155
152
  depends_on:
156
153
  connector_db:
@@ -197,18 +194,16 @@ services:
197
194
  - LEDGER_URL=http://ledger:10700
198
195
  - WEBHOOKS_URL=http://webhooks:10800
199
196
  - FRONTEND_URL=http://localhost:9000
200
- working_dir: '/app'
201
197
  mem_limit: 2G
202
- user: root
203
198
  logging:
204
199
  driver: "json-file"
205
200
  ports:
206
- - "9300:9300"
207
- - "9301:9301"
201
+ - "9300:9300"
202
+ - "9301:9301"
208
203
  container_name: connector
209
204
 
210
205
  cardid:
211
- image: governmentdigitalservice/pay-cardid:local
206
+ image: governmentdigitalservice/pay-cardid:latest-master
212
207
 
213
208
  env_file:
214
209
  - services/java_app.env
@@ -234,18 +229,16 @@ services:
234
229
  - LEDGER_URL=http://ledger:10700
235
230
  - WEBHOOKS_URL=http://webhooks:10800
236
231
  - FRONTEND_URL=http://localhost:9000
237
- working_dir: '/app'
238
232
  mem_limit: 2G
239
- user: root
240
233
  logging:
241
234
  driver: "json-file"
242
235
  ports:
243
- - "9900:9900"
244
- - "9901:9901"
236
+ - "9900:9900"
237
+ - "9901:9901"
245
238
  container_name: cardid
246
239
 
247
240
  publicauth:
248
- image: governmentdigitalservice/pay-publicauth:local
241
+ image: governmentdigitalservice/pay-publicauth:latest-master
249
242
 
250
243
  depends_on:
251
244
  publicauth_db:
@@ -280,18 +273,16 @@ services:
280
273
  - LEDGER_URL=http://ledger:10700
281
274
  - WEBHOOKS_URL=http://webhooks:10800
282
275
  - FRONTEND_URL=http://localhost:9000
283
- working_dir: '/app'
284
276
  mem_limit: 2G
285
- user: root
286
277
  logging:
287
278
  driver: "json-file"
288
279
  ports:
289
- - "9600:9600"
290
- - "9601:9601"
280
+ - "9600:9600"
281
+ - "9601:9601"
291
282
  container_name: publicauth
292
283
 
293
284
  publicapi:
294
- image: governmentdigitalservice/pay-publicapi:local
285
+ image: governmentdigitalservice/pay-publicapi:latest-master
295
286
 
296
287
  env_file:
297
288
  - services/java_app.env
@@ -318,18 +309,16 @@ services:
318
309
  - WEBHOOKS_URL=http://webhooks:10800
319
310
  - FRONTEND_URL=http://localhost:9000
320
311
  - REDIS_URL=redis
321
- working_dir: '/app'
322
312
  mem_limit: 2G
323
- user: root
324
313
  logging:
325
314
  driver: "json-file"
326
315
  ports:
327
- - "9100:9100"
328
- - "9101:9101"
316
+ - "9100:9100"
317
+ - "9101:9101"
329
318
  container_name: publicapi
330
319
 
331
320
  ledger:
332
- image: governmentdigitalservice/pay-ledger:local
321
+ image: governmentdigitalservice/pay-ledger:latest-master
333
322
 
334
323
  depends_on:
335
324
  ledger_db:
@@ -382,18 +371,16 @@ services:
382
371
  - SNS_ENABLED=true
383
372
  - PUBLISH_CARD_PAYMENT_EVENTS_TO_SNS=true
384
373
  - PUBLISH_CARD_PAYMENT_DISPUTE_EVENTS_TO_SNS=true
385
- working_dir: '/app'
386
374
  mem_limit: 2G
387
- user: root
388
375
  logging:
389
376
  driver: "json-file"
390
377
  ports:
391
- - "10700:10700"
392
- - "10701:10701"
378
+ - "10700:10700"
379
+ - "10701:10701"
393
380
  container_name: ledger
394
381
 
395
382
  webhooks:
396
- image: governmentdigitalservice/pay-webhooks:local
383
+ image: governmentdigitalservice/pay-webhooks:latest-master
397
384
 
398
385
  depends_on:
399
386
  webhooks_db:
@@ -437,26 +424,24 @@ services:
437
424
  - LEDGER_URL=http://ledger:10700
438
425
  - WEBHOOKS_URL=http://webhooks:10800
439
426
  - FRONTEND_URL=http://localhost:9000
440
- working_dir: '/app'
441
427
  mem_limit: 2G
442
- user: root
443
428
  logging:
444
429
  driver: "json-file"
445
430
  ports:
446
- - "10800:10800"
447
- - "10801:10801"
431
+ - "10800:10800"
432
+ - "10801:10801"
448
433
  container_name: webhooks
449
434
 
450
435
 
451
436
 
452
437
  frontend:
453
- image: node:18.18.2-alpine3.18
438
+ image: governmentdigitalservice/pay-frontend:latest-master
454
439
 
455
440
  env_file: services/frontend.env
456
441
  environment:
457
442
  - SECURE_COOKIE_OFF=true
443
+ - NODE_ENV=${NODE_ENV:-production}
458
444
  - RUN_APP=true
459
- - DISABLE_APPMETRICS=true
460
445
  - DISABLE_INTERNAL_HTTPS=true
461
446
  - PORT=9000
462
447
 
@@ -474,20 +459,18 @@ services:
474
459
 
475
460
  - WEBHOOKS_URL=http://webhooks:10800
476
461
  - FRONTEND_URL=http://localhost:9000
477
- volumes:
478
- - "$WORKSPACE/pay-frontend:/app"
479
462
  mem_limit: 1G
480
463
  working_dir: '/app'
481
- entrypoint: npx nodemon --inspect=0.0.0.0:9001 start.js
464
+ entrypoint: 'npm start'
482
465
  ports:
483
466
  - "9000:9000"
484
- - "9001:9001"
485
467
  logging:
486
468
  driver: "json-file"
487
469
  container_name: frontend
488
470
 
489
471
 
490
472
 
473
+
491
474
  localstack:
492
475
  image: localstack/localstack:3
493
476
  container_name: localstack