bridgehead/ccp/docker-compose.yml

115 lines
3.5 KiB
YAML
Raw Normal View History

version: "3.7"
services:
traefik:
container_name: bridgehead-traefik
2022-05-09 13:52:20 +02:00
image: traefik:latest
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --providers.docker=true
- --providers.file.watch=true
- --providers.file.directory=/configuration/
2022-09-07 11:09:53 +02:00
- --api.dashboard=true
- --accesslog=true # print access-logs
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
labels:
- "traefik.http.routers.dashboard.rule=PathPrefix(`/api`) || PathPrefix(`/dashboard`)"
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.tls=true"
- "traefik.http.routers.dashboard.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=${bc_auth_users}"
ports:
- 80:80
- 443:443
volumes:
2022-10-17 15:09:18 +02:00
- /etc/bridgehead/traefik-tls:/tools/certs:ro
- ../lib/traefik-configuration/:/configuration:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
forward_proxy:
2022-05-05 08:52:09 +02:00
container_name: bridgehead-forward-proxy
2022-06-13 12:40:41 +02:00
image: samply/bridgehead-forward-proxy:develop
environment:
2022-09-30 14:20:37 +02:00
http_proxy: ${HTTP_PROXY_URL}
https_proxy: ${HTTPS_PROXY_URL}
volumes:
- "bridgehead-proxy:/var/log/squid"
landing:
container_name: bridgehead-landingpage
2022-05-11 09:05:23 +02:00
image: samply/bridgehead-landingpage:master
labels:
- "traefik.enable=true"
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
- "traefik.http.services.landing.loadbalancer.server.port=80"
- "traefik.http.routers.landing.tls=true"
2022-05-10 11:52:38 +02:00
environment:
HOST: ${HOST}
PROJECT: ${PROJECT}
SITE_NAME: ${SITE_NAME}
blaze:
2022-10-05 12:52:39 +02:00
image: "samply/blaze:0.18"
container_name: bridgehead-ccp-blaze
environment:
2022-09-07 11:09:53 +02:00
BASE_URL: "http://bridgehead-ccp-blaze:8080"
JAVA_TOOL_OPTIONS: "-Xmx4g"
LOG_LEVEL: "debug"
ENFORCE_REFERENTIAL_INTEGRITY: "false"
volumes:
- "blaze-data:/app/data"
labels:
- "traefik.enable=true"
2022-05-09 12:57:24 +02:00
- "traefik.http.middlewares.ccp-auth.basicauth.users=${bc_auth_users}"
- "traefik.http.routers.blaze_ccp.rule=PathPrefix(`/ccp-localdatamanagement`)"
- "traefik.http.middlewares.ccp_b_strip.stripprefix.prefixes=/ccp-localdatamanagement"
- "traefik.http.services.blaze_ccp.loadbalancer.server.port=8080"
2022-05-09 12:57:24 +02:00
- "traefik.http.routers.blaze_ccp.middlewares=ccp_b_strip,ccp-auth"
- "traefik.http.routers.blaze_ccp.tls=true"
2022-09-07 11:09:53 +02:00
spot:
2022-09-29 16:33:50 +02:00
image: samply/spot:latest
environment:
2022-09-30 16:05:36 +02:00
SECRET: ${SPOT_BEAM_SECRET_LONG}
APPID: spot
2022-09-07 11:09:53 +02:00
PROXY_ID: ${PROXY_ID}
2022-09-30 16:05:36 +02:00
LDM_URL: http://bridgehead-ccp-blaze:8080/fhir
2022-09-07 11:09:53 +02:00
BEAM_PROXY: http://beam-proxy:8081
depends_on:
- "beam-proxy"
- "blaze"
labels:
- "traefik.enable=false"
beam-proxy:
2022-09-08 10:24:25 +02:00
image: "samply/beam-proxy:develop"
2022-09-07 11:09:53 +02:00
container_name: bridgehead-beam-proxy
environment:
BROKER_URL: ${BROKER_URL}
PROXY_ID: ${PROXY_ID}
2022-09-30 16:05:36 +02:00
APP_0_ID: spot
APP_0_KEY: ${SPOT_BEAM_SECRET_SHORT}
APP_1_ID: report-hub
APP_1_KEY: ${REPORTHUB_BEAM_SECRET_SHORT}
PRIVKEY_FILE: /run/secrets/proxy.pem
2022-09-08 09:33:03 +02:00
RUST_LOG: debug
2022-09-29 16:31:35 +02:00
ALL_PROXY: http://forward_proxy:3128
secrets:
- proxy.pem
2022-09-07 11:09:53 +02:00
labels:
- "traefik.enable=false"
depends_on:
- "forward_proxy"
volumes:
blaze-data:
bridgehead-proxy:
secrets:
proxy.pem:
2022-09-30 16:05:36 +02:00
file: /etc/bridgehead/pki/${SITE_ID}.priv.pem