2023-04-12 09:46:35 +02:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
############################################ DataSHIELD Client (Rocker R-Studio)
|
2023-04-12 15:51:30 +02:00
|
|
|
rstudio:
|
|
|
|
container_name: bridgehead-rstudio
|
2023-04-12 09:46:35 +02:00
|
|
|
image: docker.verbis.dkfz.de/ccp/dktk-rstudio:latest
|
|
|
|
#TODO: Connect with Keycloak: https://rocker-project.org/images/versioned/rstudio.html
|
|
|
|
environment:
|
|
|
|
USER: "ruser"
|
|
|
|
PASSWORD: "${RSTUDIO_PASSWORD}"
|
2023-04-12 15:51:30 +02:00
|
|
|
HTTP_RELATIVE_PATH: "/rstudio"
|
2023-04-12 09:46:35 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.rstudio_ccp.rule=PathPrefix(`/rstudio`)"
|
|
|
|
- "traefik.http.services.rstudio_ccp.loadbalancer.server.port=8787"
|
|
|
|
- "traefik.http.routers.rstudio_ccp.tls=true"
|
|
|
|
- "traefik.http.middlewares.rstudio_ccp_strip.stripprefix.prefixes=/rstudio"
|
|
|
|
- "traefik.http.routers.rstudio_ccp.middlewares=rstudio_ccp_strip"
|
|
|
|
volumes:
|
2023-04-12 15:51:30 +02:00
|
|
|
#- "bridgehead-rstudio-config:/home/rstudio/.config/rstudio"
|
|
|
|
- "bridgehead-rstudio-workspace:/home/rstudio/workspace"
|
2023-04-12 09:46:35 +02:00
|
|
|
|
|
|
|
############################################ DataSHIELD Server (Opal)
|
2023-04-12 15:51:30 +02:00
|
|
|
opal:
|
|
|
|
container_name: bridgehead-opal
|
2023-04-12 09:46:35 +02:00
|
|
|
image: obiba/opal:4.5
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-04-12 15:51:30 +02:00
|
|
|
# - "traefik.http.routers.opal_ccp.service=opal_ccp"
|
2023-04-12 09:46:35 +02:00
|
|
|
- "traefik.http.routers.opal_ccp.rule=PathPrefix(`/opal`)"
|
2023-04-12 15:51:30 +02:00
|
|
|
- "traefik.http.services.opal_ccp.loadbalancer.server.port=8080"
|
2023-04-12 09:46:35 +02:00
|
|
|
- "traefik.http.routers.opal_ccp.tls=true"
|
2023-04-12 15:51:30 +02:00
|
|
|
# - "traefik.http.routers.opal_ccp.middlewares=opal_ccp_strip"
|
|
|
|
# - "traefik.http.middlewares.opal_ccp_strip.stripprefix.prefixes=/opal"
|
|
|
|
|
|
|
|
# - "traefik.http.routers.opal_ccp2.service=opal_ccp"
|
|
|
|
# - "traefik.http.routers.opal_ccp2.rule=PathPrefix(`/ws`)"
|
|
|
|
# - "traefik.http.routers.opal_ccp2.tls=true"
|
|
|
|
# - "traefik.http.routers.opal_ccp2.middlewares=opal_ccp2_strip"
|
|
|
|
# - "traefik.http.middlewares.opal_ccp2_strip.stripprefix.prefixes=/ws"
|
|
|
|
# - "traefik.http.routers.opal_ccp2.middlewares=opal_ccp2_add"
|
|
|
|
# - "traefik.http.middlewares.opal_ccp2_add.addprefix.prefix=/opal/ws"
|
|
|
|
|
2023-04-12 09:46:35 +02:00
|
|
|
links:
|
2023-04-12 15:51:30 +02:00
|
|
|
- opal-rserver
|
|
|
|
- opal-mongo
|
|
|
|
- opal-db
|
2023-04-12 09:46:35 +02:00
|
|
|
environment:
|
|
|
|
JAVA_OPTS: "-Xms1G -Xmx8G -XX:+UseG1GC"
|
|
|
|
# OPAL_ADMINISTRATOR_USER: "administrator"
|
|
|
|
OPAL_ADMINISTRATOR_PASSWORD: "${OPAL_ADMINISTRATOR_PASSWORD}"
|
2023-04-12 15:51:30 +02:00
|
|
|
MONGO_HOST: "opal-mongo"
|
2023-04-12 09:46:35 +02:00
|
|
|
MONGO_PORT: "27017"
|
2023-04-12 15:51:30 +02:00
|
|
|
POSTGRESDATA_HOST: "opal-db"
|
2023-04-12 09:46:35 +02:00
|
|
|
POSTGRESDATA_DATABASE: "opal"
|
|
|
|
POSTGRESDATA_USER: "opal"
|
|
|
|
POSTGRESDATA_PASSWORD: "${OPAL_DB_PASSWORD}"
|
2023-04-12 15:51:30 +02:00
|
|
|
ROCK_HOSTS: "opal-rserver:8085"
|
|
|
|
# APP_URL: "https://${HOST}/opal"
|
|
|
|
# APP_CONTEXT_PATH: "/opal"
|
|
|
|
|
|
|
|
# volumes:
|
|
|
|
# - "bridgehead-opal:/srv"
|
2023-04-12 09:46:35 +02:00
|
|
|
|
2023-04-12 15:51:30 +02:00
|
|
|
opal-mongo: # IDs
|
|
|
|
container_name: bridgehead-opal-mongo
|
2023-04-12 09:46:35 +02:00
|
|
|
image: mongo:4.2 # TODO: Update mongo:6.0.4
|
|
|
|
|
2023-04-12 15:51:30 +02:00
|
|
|
opal-db: # Data
|
|
|
|
container_name: bridgehead-opal-db
|
2023-04-12 09:46:35 +02:00
|
|
|
image: postgres:15.1-alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: "${OPAL_DB_PASSWORD}"
|
|
|
|
POSTGRES_USER: "opal"
|
|
|
|
POSTGRES_DB: "opal"
|
|
|
|
volumes:
|
|
|
|
- "bridgehead-opal-db:/var/lib/postgresql/data"
|
|
|
|
|
2023-04-12 15:51:30 +02:00
|
|
|
opal-rserver:
|
|
|
|
container_name: bridgehead-opal-rserver
|
2023-04-12 09:46:35 +02:00
|
|
|
image: datashield/rock-base:6.2-R4.2 # https://datashield.discourse.group/t/ds-aggregate-method-error/416/4
|
|
|
|
|
2023-04-25 13:58:04 +02:00
|
|
|
beam-connect:
|
|
|
|
image: docker.verbis.dkfz.de/cache/samply/beam-connect:develop
|
|
|
|
container_name: bridgehead-datashield-connect
|
2023-04-25 16:30:55 +02:00
|
|
|
ports:
|
|
|
|
- 8062:8062
|
2023-04-25 13:58:04 +02:00
|
|
|
environment:
|
|
|
|
PROXY_URL: "http://beam-proxy:8081"
|
2023-04-25 14:12:58 +02:00
|
|
|
APP_ID: datashield-connect.${SITE_ID}.${BROKER_ID}
|
2023-04-25 13:58:04 +02:00
|
|
|
PROXY_APIKEY: ${DATASHIELD_CONNECT_SECRET}
|
|
|
|
DISCOVERY_URL: "./map/central.json"
|
|
|
|
LOCAL_TARGETS_FILE: "./map/local.json"
|
|
|
|
depends_on:
|
|
|
|
- "beam-proxy"
|
|
|
|
volumes:
|
|
|
|
- /etc/bridgehead/datashield-connect/:/map:ro
|
|
|
|
|
|
|
|
beam-proxy:
|
|
|
|
environment:
|
|
|
|
APP_2_ID: datashield-connect
|
|
|
|
APP_2_KEY: ${DATASHIELD_CONNECT_SECRET}
|
|
|
|
|
2023-04-12 09:46:35 +02:00
|
|
|
volumes:
|
2023-04-12 15:51:30 +02:00
|
|
|
# bridgehead-rstudio-config:
|
|
|
|
# name: "bridgehead-rstudio-config"
|
|
|
|
bridgehead-rstudio-workspace:
|
|
|
|
name: "bridgehead-rstudio-workspace"
|
2023-04-12 09:46:35 +02:00
|
|
|
bridgehead-opal-db:
|
|
|
|
name: "bridgehead-opal-db"
|
2023-04-12 15:51:30 +02:00
|
|
|
bridgehead-opal:
|
|
|
|
name: "bridgehead-opal"
|