From 2f6c3d193de4ecc05630a2a5f8966a29691bbc2b Mon Sep 17 00:00:00 2001 From: Mohamed Chedli Date: Fri, 20 Sep 2024 10:47:47 +0100 Subject: [PATCH 1/4] Add hapi-fhir service to docker-compose.yml --- docker-compose.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d816fe3..8b1cfc2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -61,10 +61,24 @@ services: networks: - smart-health-links-portal-network + hapi-fhir: + image: jembi/hapi:v7.0.3-wget + ports: + - 8081:8080 + networks: + - smart-health-links-portal-network + volumes: + - hapi_fhir_data:/var/lib/hapi-fhir + healthcheck: + test: ['CMD', 'curl', '-f', 'http://localhost:8080'] + interval: 30s + timeout: 10s + retries: 3 + volumes: postgres_data: driver: local networks: smart-health-links-portal-network: - driver: bridge \ No newline at end of file + driver: bridge From e3208e463749c18b12d47022df5b4b91fc23d1af Mon Sep 17 00:00:00 2001 From: Mohamed Chedli Date: Fri, 20 Sep 2024 11:01:18 +0100 Subject: [PATCH 2/4] Update hapi-fhir service port in docker-compose.yml and HAPI FHIR configuration settings --- docker-compose.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8b1cfc2..51d116a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -64,7 +64,23 @@ services: hapi-fhir: image: jembi/hapi:v7.0.3-wget ports: - - 8081:8080 + - 3447:8080 + networks: + - smart-health-links-portal-network + volumes: + - hapi_fhir_data:/var/lib/hapi-fhir + environment: + - hapi.fhir.allow_external_references=true + - hapi.fhir.bulk_export_enabled=true + - HAPI_FHIR_IPS_ENABLED=true + healthcheck: + test: ['CMD', 'curl', '-f', 'http://localhost:8080'] + interval: 30s + timeout: 10s + retries: 3 + image: jembi/hapi:v7.0.3-wget + ports: + - 3447:8080 networks: - smart-health-links-portal-network volumes: From 5dc51d3066eed67d71b7b913c3ec30570a0918f2 Mon Sep 17 00:00:00 2001 From: Mohamed Chedli Date: Fri, 20 Sep 2024 11:07:33 +0100 Subject: [PATCH 3/4] Add hapi-fhir_data volume to docker-compose.yml --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 51d116a..8f8147a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -94,6 +94,8 @@ services: volumes: postgres_data: driver: local + hapi_fhir_data: + driver: local networks: smart-health-links-portal-network: From ec0f8ec3153f8059004c16898747cc424903d9f4 Mon Sep 17 00:00:00 2001 From: Mohamed Chedli Date: Fri, 20 Sep 2024 11:12:54 +0100 Subject: [PATCH 4/4] Update HAPI FHIR service configuration in docker-compose.yml --- docker-compose.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8f8147a..f3385de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,19 +72,7 @@ services: environment: - hapi.fhir.allow_external_references=true - hapi.fhir.bulk_export_enabled=true - - HAPI_FHIR_IPS_ENABLED=true - healthcheck: - test: ['CMD', 'curl', '-f', 'http://localhost:8080'] - interval: 30s - timeout: 10s - retries: 3 - image: jembi/hapi:v7.0.3-wget - ports: - - 3447:8080 - networks: - - smart-health-links-portal-network - volumes: - - hapi_fhir_data:/var/lib/hapi-fhir + - hapi.fhir.ips_enabled=true healthcheck: test: ['CMD', 'curl', '-f', 'http://localhost:8080'] interval: 30s