diff --git a/ccp/exliquid-compose.yml b/ccp/exliquid-compose.yml new file mode 100644 index 0000000..0967ead --- /dev/null +++ b/ccp/exliquid-compose.yml @@ -0,0 +1,38 @@ +version: "3.7" + +services: + task-store: + image: "samply/blaze:0.18" + container_name: bridgehead-task-store + environment: + BASE_URL: "http://localhost:8083" + JAVA_TOOL_OPTIONS: "-Xmx1g" + LOG_LEVEL: "debug" + volumes: + - "task-store-data:/app/data" + labels: + - "traefik.enable=false" + + report-hub: + image: "samply/report-hub:latest" + container_name: bridgehead-report-hub + environment: + BASE_URL: "http://ccp-task-store:8080" + JAVA_TOOL_OPTIONS: "-Xmx1g" + LOG_LEVEL: "debug" + PROXY_ID: "report-hub.${PROXY_ID}" + SECRET: ${REPORTHUB_BEAM_SECRET_SHORT} + TASK_STORE: "http://bridgehead-task-store:8080/fhir" + LDM_URL: http://bridgehead-ccp-blaze:8080/fhir + BEAM_PROXY: "http://beam-proxy:8081" + restart: always + labels: + - "traefik.enable=true" + - "traefik.http.routers.blaze_ccp.rule=PathPrefix(`/ccp-report-hub`)" + - "traefik.http.middlewares.ccp_t_strip.stripprefix.prefixes=/ccp-report-hub" + - "traefik.http.services.blaze_ccp.loadbalancer.server.port=8080" + - "traefik.http.routers.blaze_ccp.middlewares=ccp_t_strip,ccp-auth" + - "traefik.http.routers.blaze_ccp.tls=true" + +volumes: + task-store-data: \ No newline at end of file diff --git a/ccp/exliquid-setup.sh b/ccp/exliquid-setup.sh new file mode 100644 index 0000000..59d8877 --- /dev/null +++ b/ccp/exliquid-setup.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +function exliquidSetup() { + if [ -n "$EXLIQUID" ]; then + log INFO "EXLIQUID setup detected -- will start Reporthub." + OVERRIDE+="-f ./$PROJECT/exliquid-compose.yml" + fi +} \ No newline at end of file diff --git a/ccp/vars b/ccp/vars index f5f734e..63def80 100644 --- a/ccp/vars +++ b/ccp/vars @@ -11,3 +11,5 @@ PRIVATEKEYFILENAME=/etc/bridgehead/pki/${SITE_ID}.priv.pem # This will load nngm setup. Effective only if nngm configuration is defined. source $PROJECT/nngm-setup.sh nngmSetup +source $PROJECT/exliquid-setup.sh +exliquidSetup