-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
1146 lines (1102 loc) · 41.4 KB
/
docker-compose.yml
File metadata and controls
1146 lines (1102 loc) · 41.4 KB
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
version: '3.4'
#### services and ports
## fhir_server: 6157
## redis_cache: 6379
## mssql: 1433
## mongo: 17017
## loki: 3100
## grafana: 3000
## otel-collector: 4317
## tempo: 4417
## prometheus: 9090
## kafka_b: 9092, 9094
## kafka-ui: 9095
## azurite: 10000
## rest-proxy: 8082
## schema-registry: 8081
## account: 8060
## audit: 8062
## admin-bff: 8063
## census: 8064
## dataacquisition: 8065
## dataacquisition.acquisitionworker: 8078
## admin-ui: 8066
## measureeval: 8067
## normalization: 8068
## querydispatch: 8071
## report: 8072
## submission: 8073
## tenant: 8074
## validation: 8075
## terminology: 8076
services:
###########################################
### FHIR Server (HAPI) - For testing
###########################################
fhir_server:
image: hapiproject/hapi:latest
container_name: fhir-server
ports:
- "6157:8080"
environment:
- hapi.fhir.fhir_version=R4
- hapi.fhir.allow_multiple_delete=true
- hapi.fhir.allow_external_references=true
- hapi.fhir.allow_cascading_deletes=true
- hapi.fhir.delete_enabled=true
- hapi.fhir.expunge_enabled=true
- hapi.fhir.enforce_referential_integrity_on_delete=false
- hapi.fhir.enforce_referential_integrity_on_write=false
- hapi.fhir.delete_expunge_enabled=true
- hapi.fhir.reuse_cached_search_results_millis=0
- hapi.fhir.subscription_enabled=false
- hapi.fhir.client_id_strategy=ANY
- hapi.fhir.server_id_strategy=UUID
volumes:
- fhir_data:/data
- ./healthcheck-1.0.0.jar:/app/healthcheck.jar:ro
networks:
- link-nw
healthcheck:
test: ["CMD", "java", "-jar", "/app/healthcheck.jar", "http://localhost:8080/fhir/metadata"]
interval: 3s
timeout: 3s
retries: 15
###########################################
### Redis Cache
###########################################
redis_cache:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
container_name: redis_cache
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASS}
volumes:
- redis_cache:/data
networks:
- link-nw
healthcheck:
test: [ "CMD", "redis-cli", "-a", "${REDIS_PASS}", "ping" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
###########################################
### Blob Storage
###########################################
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.35.0
ports:
- "10000:10000"
container_name: azurite
volumes:
- azurite_data:/data
healthcheck:
test: >-
nc -z 127.0.0.1 10000
interval: 3s
timeout: 3s
retries: 15
networks:
- link-nw
azurite_init:
image: mcr.microsoft.com/azure-cli:2.75.0
container_name: azurite-init
environment:
AZURE_STORAGE_CONNECTION_STRING: ${AZURITE_CONNECTION_STRING}
command: bash -c 'az storage container create -n ${INTERNAL_BLOB_CONTAINER_NAME}; az storage container create -n ${EXTERNAL_BLOB_CONTAINER_NAME}'
depends_on:
azurite:
condition: service_healthy
networks:
- link-nw
###########################################
### Databases
###########################################
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${LINK_DB_PASS}
ports:
- 1433:1433
container_name: sql-server
volumes:
- mssql_data:/var/opt/mssql
restart: always
healthcheck:
test: >-
/opt/mssql-tools18/bin/sqlcmd -C -U sa -P "$$SA_PASSWORD" -Q 'SELECT 1;'
interval: 5s
retries: 15
start_period: 5s
timeout: 5s
networks:
- link-nw
mssql_init:
image: mcr.microsoft.com/mssql-tools
container_name: sql-init
environment:
LINK_DB_PASS: ${LINK_DB_PASS}
volumes:
- type: bind
source: .docker/create-dbs.sql
target: /create-dbs.sql
command: bash -c "/opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P ${LINK_DB_PASS} -i /create-dbs.sql"
depends_on:
mssql:
condition: service_healthy
networks:
- link-nw
mongo:
image: mongo:6-jammy
ports:
- '17017:27017'
container_name: mongo
volumes:
- mongo_data:/data/db
networks:
- link-nw
healthcheck:
test: ["CMD","mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 3
start_period: 5s
###########################################
### Telemetry
###########################################
loki:
image: grafana/loki:3.3.1
ports:
- "3100:3100"
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
networks:
- link-nw
otel-collector:
image: otel/opentelemetry-collector:0.88.0
container_name: open-telemetry-collector
restart: always
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- .docker/collector.yml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "55679:55679" # zpages extension
networks:
- link-nw
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
container_name: prometheus
volumes:
- .docker/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- link-nw
depends_on:
- otel-collector
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml" ]
container_name: tempo
hostname: tempo
volumes:
- .docker/tempo.yml:/etc/tempo.yaml
ports:
- "3200:3200"
- "4417:4417"
healthcheck:
interval: 5s
retries: 10
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3200/status"]
networks:
- link-nw
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
container_name: grafana
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- .docker/grafana.yml:/etc/grafana/provisioning/datasources/ds.yaml
networks:
- link-nw
###########################################
### KAFKA
###########################################
kafka_b:
image: bitnamilegacy/kafka:3.4
ports:
- "9092:9092"
- "9094:9094"
container_name: kafka-broker
volumes:
- kafka_data:/bitnami
- .docker/kafka-client.properties:/etc/kafka-client.properties
environment:
KAFKA_BROKER_ID: "1"
KAFKA_CFG_NODE_ID: "1"
KAFKA_CFG_PROCESS_ROLES: "broker,controller"
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "1@127.0.0.1:9093"
KAFKA_CFG_LISTENERS: "SASL_PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094"
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:SASL_PLAINTEXT,SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL:SASL_PLAINTEXT"
KAFKA_CFG_ADVERTISED_LISTENERS: "SASL_PLAINTEXT://127.0.0.1:9092,EXTERNAL://kafka-broker:9094"
KAFKA_CLIENT_USERS: "${KAFKA_SASL_CLIENT_USER}"
KAFKA_CLIENT_PASSWORDS: "${KAFKA_SASL_CLIENT_PASSWORD}"
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: "SASL_PLAINTEXT"
KAFKA_CFG_SASL_MECHANISM_INTER_BROKER_PROTOCOL: "PLAIN"
KAFKA_INTER_BROKER_USER: "controller_user"
KAFKA_INTER_BROKER_PASSWORD: "controller_password"
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER"
KAFKA_CFG_SASL_MECHANISM_CONTROLLER_PROTOCOL: "PLAIN"
KAFKA_CONTROLLER_USER: "${KAFKA_INTER_BROKER_USER}"
KAFKA_CONTROLLER_PASSWORD: "${KAFKA_INTER_BROKER_PASSWORD}"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
KAFKA_CFG_NUM_PARTITIONS: "2"
KAFKA_CFG_MESSAGE_MAX_BYTES: 10485760
KAFKA_CFG_REPLICA_FETCH_MAX_BYTES: 10485760
networks:
- link-nw
healthcheck:
test: [ "CMD-SHELL", "kafka-topics.sh --bootstrap-server kafka-broker:9092 --command-config /etc/kafka-client.properties --list" ]
interval: 5s
timeout: 5s
retries: 10
kafka_init:
image: confluentinc/cp-kafka:6.1.1
container_name: kafka-init
volumes:
- .docker/kafka-client.properties:/etc/kafka-client.properties
- ./Scripts/create-topics-rest.sh:/create-topics-rest.sh
- ./topics.txt:/topics.txt
depends_on:
rest-proxy:
condition: service_healthy
entrypoint: [ 'bash', '/create-topics-rest.sh', 'http://rest-proxy:8082', '${KAFKA_SASL_CLIENT_USER}', '${KAFKA_SASL_CLIENT_PASSWORD}', '/topics.txt' ]
networks:
- link-nw
kafka-ui:
container_name: kafka-ui
image: provectuslabs/kafka-ui:latest
ports:
- 9095:8080
depends_on:
- kafka_b
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka_b:9094
KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL: SASL_PLAINTEXT
KAFKA_CLUSTERS_0_PROPERTIES_SASL_MECHANISM: PLAIN
KAFKA_CLUSTERS_0_PROPERTIES_SASL_JAAS_CONFIG: 'org.apache.kafka.common.security.plain.PlainLoginModule required username="${KAFKA_SASL_CLIENT_USER}" password="${KAFKA_SASL_CLIENT_PASSWORD}";'
FILTERING_GROOVY_ENABLED: 'true'
networks:
- link-nw
rest-proxy:
image: confluentinc/cp-kafka-rest:latest
depends_on:
kafka_b:
condition: service_healthy
ports:
- 8082:8082
container_name: kafka-rest-proxy
environment:
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: 'kafka_b:9094'
KAFKA_REST_LISTENERS: "http://0.0.0.0:8082"
KAFKA_REST_KAFKA_CLUSTER_ID: "link-cluster"
KAFKA_REST_CLIENT_SECURITY_PROTOCOL: SASL_PLAINTEXT
KAFKA_REST_CLIENT_SASL_MECHANISM: PLAIN
KAFKA_REST_CLIENT_SASL_JAAS_CONFIG: 'org.apache.kafka.common.security.plain.PlainLoginModule required username="${KAFKA_SASL_CLIENT_USER}" password="${KAFKA_SASL_CLIENT_PASSWORD}";'
healthcheck:
test: ["CMD", "curl", "-sSf", "http://localhost:8082/v3/clusters"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- link-nw
schema-registry:
image: confluentinc/cp-schema-registry:latest
depends_on:
- kafka_b
ports:
- "8081:8081"
container_name: kafka-schema-registry
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: SASL_PLAINTEXT://kafka_b:9094,PLAINTEXT_INTERNAL://localhost:29092
SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL: SASL_PLAINTEXT
SCHEMA_REGISTRY_KAFKASTORE_SASL_MECHANISM: PLAIN
SCHEMA_REGISTRY_KAFKASTORE_SASL_JAAS_CONFIG: 'org.apache.kafka.common.security.plain.PlainLoginModule required username="${KAFKA_SASL_CLIENT_USER}" password="${KAFKA_SASL_CLIENT_PASSWORD}";'
networks:
- link-nw
###########################################
### LINK
###########################################
account:
image: link-account
container_name: link-account
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Account Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433; Initial Catalog=link-account;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
ConnectionStrings__Redis: redis_cache:6379
Cache__Enabled: true
Serilog__WriteTo__0__Args__uri: http://loki:3100
ServiceRegistry: "{}"
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
SecretManagement__Enabled: false
SecretManagement__Manager:
SecretManagement__ManagerUri:
ports:
- "8060:8060"
build:
context: .
dockerfile: DotNet/Account/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
otel-collector:
condition: service_started
loki:
condition: service_started
mssql_init:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8060/health"]
audit:
image: link-audit
container_name: link-audit
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Audit Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-audit;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
ports:
- "8062:8062"
build:
context: .
dockerfile: DotNet/Audit/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
otel-collector:
condition: service_started
loki:
condition: service_started
mssql_init:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8062/health"]
admin-bff:
image: link-admin-bff
container_name: link-admin-bff
environment:
ServiceInformation__ServiceName: Link Admin BFF
ServiceInformation__ProductVersion: dev
Serilog__MinimumLevel__Default: Debug
ASPNETCORE_ENVIRONMENT: Docker
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
Serilog__WriteTo__0__Args__uri: http://loki:3100
Redis__Password: ${REDIS_PASS}
ConnectionStrings__Redis: redis_cache:6379
Cache__Type: Redis
EnableIntegrationFeature: true
ProblemDetails__IncludeExceptionDetails: false
LinkTokenService__EnableTokenGenerationEndpoint: false
LinkTokenService__Authority: placeholder
LinkTokenService__LinkAdminEmail:
LinkTokenService__TokenLifeSpan: 10
Authentication__EnableAnonymousAccess: true
CORS__AllowAllOrigins: false # Change from true to false
CORS__AllowedOrigins__0: http://localhost:8066 # Add the frontend origin
CORS__AllowCredentials: true # Ensure this is set
CORS__AllowedMethods__0: GET
CORS__AllowedMethods__1: POST
CORS__AllowedMethods__2: PUT
CORS__AllowedMethods__3: DELETE
CORS__AllowedMethods__4: OPTIONS
CORS__AllowedHeaders__0: "*"
ServiceRegistry__TenantService__TenantServiceURL: http://tenant:8074
ServiceRegistry__AccountServiceUrl: http://account:8060
ServiceRegistry__AuditServiceUrl: http://audit:8062
ServiceRegistry__CensusServiceUrl: http://census:8064
ServiceRegistry__DataAcquisitionServiceUrl: http://dataacquisition:8065
ServiceRegistry__MeasureServiceUrl: http://measureeval:8067
ServiceRegistry__NormalizationServiceUrl: http://normalization:8068
ServiceRegistry__ReportServiceUrl: http://report:8072
ServiceRegistry__SubmissionServiceUrl: http://submission:8073
ServiceRegistry__QueryDispatchServiceUrl: http://querydispatch:8071
ServiceRegistry__TerminologyServiceUrl: http://terminology:8076
ReverseProxy__Clusters__AccountService__Destinations__destination1__Address: http://account:8060
ReverseProxy__Clusters__AuditService__Destinations__destination1__Address: http://audit:8062
ReverseProxy__Clusters__CensusService__Destinations__destination1__Address: http://census:8064
ReverseProxy__Clusters__DataAcquisitionService__Destinations__destination1__Address: http://dataacquisition:8065
ReverseProxy__Clusters__MeasureEvaluationService__Destinations__destination1__Address: http://measureeval:8067
ReverseProxy__Clusters__NormalizationService__Destinations__destination1__Address: http://normalization:8068
ReverseProxy__Clusters__NotificationService__Destinations__destination1__Address: http://notification:8069
ReverseProxy__Clusters__ReportService__Destinations__destination1__Address: http://report:8072
ReverseProxy__Clusters__TenantService__Destinations__destination1__Address: http://tenant:8074
ReverseProxy__Clusters__QueryDispatchService__Destinations__destination1__Address: http://querydispatch:8071
ReverseProxy__Clusters__ValidationService__Destinations__destination1__Address: http://validation:8075
ReverseProxy__Clusters__TerminologyService__Destinations__destination1__Address: http://terminology:8076
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ports:
- "8063:8063"
build:
context: .
dockerfile: DotNet/Admin.BFF/Dockerfile
networks:
- link-nw
depends_on:
otel-collector:
condition: service_started
redis_cache:
condition: service_healthy
loki:
condition: service_started
account:
condition: service_healthy
census:
condition: service_healthy
dataacquisition:
condition: service_healthy
measureeval:
condition: service_healthy
normalization:
condition: service_healthy
report:
condition: service_healthy
submission:
condition: service_healthy
tenant:
condition: service_healthy
terminology:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8063/api/health"]
census:
image: link-census
container_name: link-census
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Census Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-census;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ServiceRegistry__TenantService__TenantServiceURL: http://tenant:8074
ServiceRegistry__TenantService__CheckIfTenantExists: false
ServiceRegistry__TenantService__GetTenantRelativeEndpoint: facility/
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
ports:
- "8064:8064"
build:
context: .
dockerfile: DotNet/Census/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
otel-collector:
condition: service_started
loki:
condition: service_started
mssql_init:
condition: service_completed_successfully
tenant:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8064/health" ]
dataacquisition:
image: link-dataacquisition
container_name: link-dataacquisition
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Data Acquisition Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-dataacquisition;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
ConnectionStrings__Redis: redis_cache:6379
Redis__Password: ${REDIS_PASS}
DistributedLockSettings__Expiration: 10
DistributedLockSettings__RetryDelay: 5
DistributedLockSettings__MaxRetryCount: 3
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ServiceRegistry__TenantService__TenantServiceURL: http://tenant:8074
ServiceRegistry__TenantService__CheckIfTenantExists: false
ServiceRegistry__TenantService__GetTenantRelativeEndpoint: facility/
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
ports:
- "8065:8065"
build:
context: .
dockerfile: DotNet/DataAcquisition/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
mssql_init:
condition: service_completed_successfully
tenant:
condition: service_healthy
otel-collector:
condition: service_started
loki:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8065/health"]
start_period: 5s
interval: 5s
retries: 10
dataacquisition.acquisitionworker:
image: link-dataacquisitionworker
container_name: link-dataacquisitionworker
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Data Acquisition Worker Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: false
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-dataacquisition;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
ConnectionStrings__Redis: redis_cache:6379
Redis__Password: ${REDIS_PASS}
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ServiceRegistry__TenantService__TenantServiceURL: http://tenant:8074
ServiceRegistry__TenantService__CheckIfTenantExists: false
ServiceRegistry__TenantService__GetTenantRelativeEndpoint: facility/
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
ports:
- "8078:8078"
build:
context: .
dockerfile: DotNet/DataAcquisition.AcquisitionWorker/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
mssql_init:
condition: service_completed_successfully
otel-collector:
condition: service_started
dataacquisition:
condition: service_healthy
loki:
condition: service_started
redis_cache:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8078/health"]
start_period: 3s
interval: 3s
retries: 10
admin-ui:
image: link-admin-ui
container_name: link-admin-ui
ports:
- "8066:80"
build:
context: Web/Admin.UI
environment:
LINK_AUTH_REQUIRED: false
LINK_BASE_API_URL: http://localhost:8063/api
GRAFANA_URL: http://localhost:3000
KAFKA_URL: http://localhost:9095
networks:
- link-nw
depends_on:
- admin-bff
measureeval:
image: link-measureeval
container_name: link-measureeval
environment:
service-information.service-name: "Link Measure Evaluation Service"
service-information.product-version: dev
server.port: 8067
spring.data.mongodb.uri: mongodb://mongo:27017
spring.data.mongodb.database: link-measureeval
spring.kafka.bootstrap-servers: kafka_b:9094
spring.kafka.consumer.group-id: measureeval-events
spring.kafka.consumer.client-id: measureeval-client
spring.kafka.properties.security.protocol: SASL_PLAINTEXT
spring.kafka.properties.sasl.mechanism: PLAIN
spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="${KAFKA_SASL_CLIENT_USER}" password="${KAFKA_SASL_CLIENT_PASSWORD}";
spring.kafka.producer.properties.max.request.size: 10485760
spring.security.oauth2.resourceserver.jwt.issuer-uri: https://oauth.nhsnlink.org/realms/NHSNLink
springdoc.api-docs.enabled: true
springdoc.swagger-ui.enabled: true
authentication.anonymous: true
link.data-acquisition.base-url: http://dataacquisition:8065
spring_profiles_active: dev
telemetry.exporter_endpoint: http://otel-collector:4317
loki.enabled: true
loki.url: http://loki:3100
ports:
- "8067:8067"
build:
context: Java/
dockerfile: measureeval/Dockerfile
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
mongo:
condition: service_healthy
dataacquisition:
condition: service_healthy
dataacquisition.acquisitionworker:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8067/health"]
start_period: 15s
interval: 5s
retries: 10
normalization:
image: link-normalization
container_name: link-normalization
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Normalization Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-normalization;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ServiceRegistry__TenantService__TenantServiceURL: http://tenant:8074
ServiceRegistry__TenantService__CheckIfTenantExists: false
ServiceRegistry__TenantService__GetTenantRelativeEndpoint: facility/
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
ports:
- "8068:8068"
build:
context: .
dockerfile: DotNet/Normalization/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
mssql_init:
condition: service_completed_successfully
otel-collector:
condition: service_started
loki:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8068/health"]
start_period: 3s
interval: 3s
retries: 10
querydispatch:
image: link-querydispatch
container_name: link-querydispatch
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Query Dispatch Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-querydispatch;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ServiceRegistry__TenantService__TenantServiceURL: http://tenant:8074/api
ServiceRegistry__TenantService__CheckIfTenantExists: false
ServiceRegistry__TenantService__GetTenantRelativeEndpoint: facility/
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
ports:
- "8071:8071"
build:
context: .
dockerfile: DotNet/QueryDispatch/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
mongo:
condition: service_healthy
otel-collector:
condition: service_started
loki:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8071/health"]
start_period: 3s
interval: 3s
retries: 10
report:
image: link-report
container_name: link-report
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Report Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
MongoDB__ConnectionString: mongodb://mongo:27017
MongoDB__DatabaseName: link-report
ConnectionStrings__Redis: redis_cache:6379
Redis__Password: ${REDIS_PASS}
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
ServiceRegistry__TenantService__TenantServiceUrl: http://tenant:8074
ServiceRegistry__TenantService__CheckIfTenantExists: false
ServiceRegistry__TenantService__GetTenantRelativeEndpoint: facility/
ServiceRegistry__CensusServiceUrl: http://census:8064
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
Logging__LogLevel__LantanaGroup.Link.Report: DEBUG
InternalBlobStorage__ConnectionString: ${AZURITE_CONNECTION_STRING}
InternalBlobStorage__BlobContainerName: ${INTERNAL_BLOB_CONTAINER_NAME}
ports:
- "8072:8072"
build:
context: .
dockerfile: DotNet/Report/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
depends_on:
kafka_init:
condition: service_completed_successfully
mongo:
condition: service_healthy
otel-collector:
condition: service_started
loki:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8072/health"]
start_period: 5s
interval: 5s
retries: 10
submission:
image: link-submission
container_name: link-submission
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Submission Service
ServiceInformation__ProductVersion: dev
KafkaConnection__BootstrapServers__0: kafka_b:9094
KafkaConnection__SaslProtocolEnabled: true
KafkaConnection__SaslUsername: ${KAFKA_SASL_CLIENT_USER}
KafkaConnection__SaslPassword: ${KAFKA_SASL_CLIENT_PASSWORD}
DatabaseProvider: SqlServer
AutoMigrate: true
ConnectionStrings__DatabaseConnection: Server=tcp:mssql,1433;Initial Catalog=link-submission;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;
ServiceRegistry__ReportServiceUrl: http://report:8072
SubmissionServiceConfig__SubmissionDirectory: /data/submission
SubmissionServiceConfig__PatientBundleBatchSize: 5
SubmissionServiceConfig__MeasureNames__0__Url: http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Measure/NHSNAcuteCareHospitalMonthlyInitialPopulation
SubmissionServiceConfig__MeasureNames__0__MeasureId: NHSNAcuteCareHospitalMonthlyInitialPopulation
SubmissionServiceConfig__MeasureNames__0__ShortName: ACHM
SubmissionServiceConfig__MeasureNames__1__Url: http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Measure/NHSNGlycemicControlHypoglycemicInitialPopulation
SubmissionServiceConfig__MeasureNames__1__MeasureId: NHSNGlycemicControlHypoglycemicInitialPopulation
SubmissionServiceConfig__MeasureNames__1__ShortName: HYPO
SubmissionServiceConfig__MeasureNames__2__Url: http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Measure/NHSNAcuteCareHospitalDailyInitialPopulation
SubmissionServiceConfig__MeasureNames__2__MeasureId: NHSNAcuteCareHospitalDailyInitialPopulation
SubmissionServiceConfig__MeasureNames__2__ShortName: ACHD
Serilog__WriteTo__0__Args__uri: http://loki:3100
Telemetry__EnableTelemetry: true
Telemetry__EnableTracing: true
Telemetry__EnableOtelCollector: true
Telemetry__OtelCollectorEndpoint: http://otel-collector:4317
EnableSwagger: true
Authentication__EnableAnonymousAccess: true
Features__DownloadReportEnabled: true
Logging__LogLevel__LantanaGroup.Link: DEBUG
InternalBlobStorage__ConnectionString: ${AZURITE_CONNECTION_STRING}
InternalBlobStorage__BlobContainerName: ${INTERNAL_BLOB_CONTAINER_NAME}
ExternalBlobStorage__ConnectionString: ${AZURITE_CONNECTION_STRING}
ExternalBlobStorage__BlobContainerName: ${EXTERNAL_BLOB_CONTAINER_NAME}
ports:
- "8073:8073"
build:
context: .
dockerfile: DotNet/Submission/Dockerfile
args:
BUILD_CONFIGURATION: Debug
networks:
- link-nw
volumes:
- submission_data:/data/submission
depends_on:
kafka_init:
condition: service_completed_successfully
mssql_init:
condition: service_completed_successfully
otel-collector:
condition: service_started
loki:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8073/health"]
start_period: 30s
interval: 5s
retries: 10
tenant:
image: link-tenant
container_name: link-tenant
environment:
ASPNETCORE_ENVIRONMENT: Docker
ServiceInformation__ServiceName: Link Tenant Service
ServiceInformation__ProductVersion: dev