Skip to content

Commit

Permalink
feat: Update docker-compose.yml files for reverse proxy and services
Browse files Browse the repository at this point in the history
The docker-compose.yml files for the reverse proxy and services have been updated to include the necessary configurations for the reverse proxy. This will enable routing of requests to the appropriate microfrontend UIs for the fhir-ig-importer, kafka-mapper-consumer, and reprocess-mediator services.
  • Loading branch information
brett-onions committed Jun 4, 2024
1 parent ec6ae59 commit 71e2247
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
7 changes: 5 additions & 2 deletions fhir-ig-importer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
fhir-ig-importer-mediator:
Expand All @@ -18,6 +18,7 @@ services:
networks:
hapi-fhir:
openhim:
reverse-proxy:
environment:
FHIR_IG_IMPORTER_CORE_URL: ${FHIR_IG_IMPORTER_CORE_URL}

Expand All @@ -28,5 +29,7 @@ networks:
openhim:
name: openhim_public
external: true
reverse-proxy:
name: reverse-proxy_public
external: true
default:

4 changes: 4 additions & 0 deletions kafka-mapper-consumer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
image: ${KAFKA_CONSUMER_MAPPER_UI_VERSION}
networks:
kafka:
reverse-proxy:

configs:
fhir-mapping.json:
Expand All @@ -45,4 +46,7 @@ networks:
openhim:
name: openhim_public
external: true
reverse-proxy:
name: reverse-proxy_public
external: true
default:
9 changes: 6 additions & 3 deletions reprocess-mediator/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
reprocess-mediator:
Expand All @@ -12,12 +12,13 @@ services:
OPENHIM_USERNAME: ${OPENHIM_USERNAME}
OPENHIM_PASSWORD: ${OPENHIM_PASSWORD}
REGISTER_MEDIATOR: ${REGISTER_MEDIATOR}

reprocess-mediator-ui:
image: ${REPROCESS_MEDIATOR_UI_VERSION}
networks:
openhim:
reprocess:
reverse-proxy:
environment:
REPROCESSOR_API_BASE_URL: ${REPROCESSOR_API_BASE_URL}

Expand All @@ -28,4 +29,6 @@ networks:
reprocess:
name: reprocess_public
external: true

reverse-proxy:
name: reverse-proxy_public
external: true
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ server {
server {
listen 80;

location /fhir-ig-importer {
resolver 127.0.0.11 valid=30s;
set $upstream_fhir_ig_importer_ui fhir-ig-importer-ui;
proxy_pass http://$upstream_fhir_ig_importer_ui:8080/jembi-fhir-ig-importer.js;
}

location /kafka-mapper-consumer-ui {
resolver 127.0.0.11 valid=30s;
set $upstream_kafka_consumer_mapper_ui kafka-mapper-consumer-ui;
proxy_pass http://$upstream_kafka_consumer_mapper_ui:80/jembi-kafka-mapper-consumer-ui.js;
}

location /reprocess-mediator-ui {
resolver 127.0.0.11 valid=30s;
set $upstream_reprocess_mediator_ui reprocess-mediator-ui;
proxy_pass http://$upstream_reprocess_mediator_ui:80/jembi-reprocessor-mediator-microfrontend.js;
}

location / {
resolver 127.0.0.11 valid=30s;
set $upstream_openhim_console openhim-console;
Expand Down
18 changes: 18 additions & 0 deletions reverse-proxy-nginx/package-conf-secure/http-openhim-secure.conf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ server {
listen [::]:443 ssl;
server_name openhimconsole.*;

location /fhir-ig-importer {
resolver 127.0.0.11 valid=30s;
set $upstream_fhir_ig_importer_ui fhir-ig-importer-ui;
proxy_pass http://$upstream_fhir_ig_importer_ui:8080/jembi-fhir-ig-importer.js;
}

location /kafka-mapper-consumer-ui {
resolver 127.0.0.11 valid=30s;
set $upstream_kafka_consumer_mapper_ui kafka-mapper-consumer-ui;
proxy_pass http://$upstream_kafka_consumer_mapper_ui:80/jembi-kafka-mapper-consumer-ui.js;
}

location /reprocess-mediator-ui {
resolver 127.0.0.11 valid=30s;
set $upstream_reprocess_mediator_ui reprocess-mediator-ui;
proxy_pass http://$upstream_reprocess_mediator_ui:80/jembi-reprocessor-mediator-microfrontend.js;
}

location /.well-known/acme-challenge/ {
resolver 127.0.0.11 valid=30s;
set $upstream_certbot certbot;
Expand Down

0 comments on commit 71e2247

Please sign in to comment.