Added Report Hub for EXLIQUID

This commit is contained in:
Patrick Skowronek 2022-10-31 08:26:25 +01:00
parent c7f727afff
commit c6a807d717
3 changed files with 48 additions and 0 deletions

38
ccp/exliquid-compose.yml Normal file
View File

@ -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:

8
ccp/exliquid-setup.sh Normal file
View File

@ -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
}

View File

@ -11,3 +11,5 @@ PRIVATEKEYFILENAME=/etc/bridgehead/pki/${SITE_ID}.priv.pem
# This will load nngm setup. Effective only if nngm configuration is defined. # This will load nngm setup. Effective only if nngm configuration is defined.
source $PROJECT/nngm-setup.sh source $PROJECT/nngm-setup.sh
nngmSetup nngmSetup
source $PROJECT/exliquid-setup.sh
exliquidSetup