2023-02-13 15:29:45 +01:00
|
|
|
services:
|
|
|
|
exporter:
|
2023-04-25 13:58:04 +02:00
|
|
|
image: docker.verbis.dkfz.de/ccp/dktk-exporter:latest
|
2023-02-13 15:29:45 +01:00
|
|
|
container_name: bridgehead-ccp-exporter
|
|
|
|
environment:
|
2023-08-10 20:36:34 +02:00
|
|
|
JAVA_OPTS: "-Xms1G -Xmx8G -XX:+UseG1GC"
|
2023-02-13 15:29:45 +01:00
|
|
|
LOG_LEVEL: "INFO"
|
2023-08-09 18:06:32 +02:00
|
|
|
EXPORTER_API_KEY: "${EXPORTER_API_KEY}" # Set in exporter-setup.sh
|
2023-04-11 15:57:12 +02:00
|
|
|
CROSS_ORIGINS: "https://${HOST}"
|
2023-02-13 15:29:45 +01:00
|
|
|
EXPORTER_DB_USER: "exporter"
|
|
|
|
EXPORTER_DB_PASSWORD: "${EXPORTER_DB_PASSWORD}" # Set in exporter-setup.sh
|
|
|
|
EXPORTER_DB_URL: "jdbc:postgresql://exporter-db:5432/exporter"
|
2023-03-22 14:41:07 +01:00
|
|
|
HTTP_RELATIVE_PATH: "/ccp-exporter"
|
2023-08-14 15:52:53 +02:00
|
|
|
SITE: "${SITE_ID}"
|
2023-04-11 15:57:12 +02:00
|
|
|
HTTP_SERVLET_REQUEST_SCHEME: "https"
|
2023-08-04 15:29:40 +02:00
|
|
|
OPAL_ADMINISTRATOR_PASSWORD: "${LDM_PASSWORD}"
|
2023-02-13 15:29:45 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.exporter_ccp.rule=PathPrefix(`/ccp-exporter`)"
|
|
|
|
- "traefik.http.services.exporter_ccp.loadbalancer.server.port=8092"
|
|
|
|
- "traefik.http.routers.exporter_ccp.tls=true"
|
2023-03-22 14:41:07 +01:00
|
|
|
- "traefik.http.middlewares.exporter_ccp_strip.stripprefix.prefixes=/ccp-exporter"
|
|
|
|
- "traefik.http.routers.exporter_ccp.middlewares=exporter_ccp_strip"
|
2023-08-10 20:52:34 +02:00
|
|
|
|
2023-08-11 15:23:45 +02:00
|
|
|
# In this initial development state of the bridgehead, we are trying to have so many volumes as possible.
|
|
|
|
# However, in the first executions in the CCP sites, this volume seems to be very important. An export is
|
|
|
|
# a process that can take several hours. There is a risk that the bridgehead restarts, losing the already
|
|
|
|
# created export. This is specially notorious while creating a report.
|
2023-07-18 10:54:24 +02:00
|
|
|
# volumes:
|
|
|
|
# - "bridgehead-exporter:/app/exporter-files"
|
2023-02-13 15:29:45 +01:00
|
|
|
|
|
|
|
exporter-db:
|
2023-08-02 14:38:25 +02:00
|
|
|
image: docker.verbis.dkfz.de/cache/postgres:15.1-alpine
|
2023-02-13 15:29:45 +01:00
|
|
|
container_name: bridgehead-ccp-exporter-db
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "exporter"
|
|
|
|
POSTGRES_PASSWORD: "${EXPORTER_DB_PASSWORD}" # Set in exporter-setup.sh
|
|
|
|
POSTGRES_DB: "exporter"
|
|
|
|
volumes:
|
2023-08-09 16:45:11 +02:00
|
|
|
# Please, do NOT REMOVE this volume until we find a solution to save Lens-queries to be executed in the explorer.
|
2023-03-22 13:13:04 +01:00
|
|
|
- "bridgehead-exporter-db:/var/lib/postgresql/data"
|
2023-02-13 15:29:45 +01:00
|
|
|
|
2023-07-05 13:14:25 +02:00
|
|
|
reporter:
|
|
|
|
image: docker.verbis.dkfz.de/ccp/dktk-reporter:latest
|
|
|
|
container_name: bridgehead-ccp-reporter
|
|
|
|
environment:
|
2023-08-10 13:55:02 +02:00
|
|
|
JAVA_OPTS: "-Xms1G -Xmx8G -XX:+UseG1GC"
|
2023-07-05 13:14:25 +02:00
|
|
|
LOG_LEVEL: "INFO"
|
|
|
|
CROSS_ORIGINS: "https://${HOST}"
|
|
|
|
HTTP_RELATIVE_PATH: "/ccp-reporter"
|
2023-08-14 15:52:53 +02:00
|
|
|
SITE: "${SITE_ID}"
|
2023-08-09 18:06:32 +02:00
|
|
|
EXPORTER_API_KEY: "${EXPORTER_API_KEY}" # Set in exporter-setup.sh
|
2023-07-05 13:14:25 +02:00
|
|
|
EXPORTER_URL: "http://exporter:8092"
|
2023-07-06 17:44:35 +02:00
|
|
|
LOG_FHIR_VALIDATION: "false"
|
2023-07-18 10:54:24 +02:00
|
|
|
HTTP_SERVLET_REQUEST_SCHEME: "https"
|
2023-08-10 20:52:34 +02:00
|
|
|
|
|
|
|
# In this initial development state of the bridgehead, we are trying to have so many volumes as possible.
|
|
|
|
# However, in the first executions in the CCP sites, this volume seems to be very important. A report is
|
|
|
|
# a process that can take several hours, because it depends on the exporter.
|
|
|
|
# There is a risk that the bridgehead restarts, losing the already created export.
|
|
|
|
|
2023-07-18 10:54:24 +02:00
|
|
|
# volumes:
|
|
|
|
# - "bridgehead-reporter:/app/reports"
|
2023-07-05 13:14:25 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.reporter_ccp.rule=PathPrefix(`/ccp-reporter`)"
|
|
|
|
- "traefik.http.services.reporter_ccp.loadbalancer.server.port=8095"
|
|
|
|
- "traefik.http.routers.reporter_ccp.tls=true"
|
|
|
|
- "traefik.http.middlewares.reporter_ccp_strip.stripprefix.prefixes=/ccp-reporter"
|
|
|
|
- "traefik.http.routers.reporter_ccp.middlewares=reporter_ccp_strip"
|
2023-02-13 15:29:45 +01:00
|
|
|
|
|
|
|
volumes:
|
2023-03-22 13:13:04 +01:00
|
|
|
bridgehead-exporter-db:
|
|
|
|
name: "bridgehead-exporter-db"
|
2023-04-27 10:52:25 +02:00
|
|
|
# bridgehead-exporter:
|
|
|
|
# name: "bridgehead-exporter"
|
2023-07-07 09:52:35 +02:00
|
|
|
# bridgehead-reporter:
|
|
|
|
# name: "bridgehead-reporter"
|