version: "3.7" services: traefik: container_name: bridgehead-traefik image: traefik:latest command: - --entrypoints.web.address=:80 - --entrypoints.websecure.address=:443 - --providers.docker=true - --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: - ../certs:/tools/certs - /var/run/docker.sock:/var/run/docker.sock:ro forward_proxy: container_name: bridgehead-forward-proxy image: samply/bridgehead-forward-proxy:develop environment: http_proxy: ${http_proxy} https_proxy: ${https_proxy} volumes: - "bridgehead-proxy:/var/log/squid" landing: container_name: bridgehead-landingpage 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" environment: HOST: ${HOST} PROJECT: ${PROJECT} SITE_NAME: ${SITE_NAME} blaze: image: "samply/blaze:0.17" container_name: bridgehead-ccp-blaze environment: BASE_URL: "http://blaze:8080" JAVA_TOOL_OPTIONS: "-Xmx4g" LOG_LEVEL: "debug" ENFORCE_REFERENTIAL_INTEGRITY: "false" volumes: - "blaze-data:/app/data" labels: - "traefik.enable=true" - "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" - "traefik.http.routers.blaze_ccp.middlewares=ccp_b_strip,ccp-auth" - "traefik.http.routers.blaze_ccp.tls=true" task-store: image: "samply/blaze:develop" environment: BASE_URL: "http://localhost:8083" JAVA_TOOL_OPTIONS: "-Xmx1g" LOG_LEVEL: "debug" ports: - "8083:8080" volumes: - "task-store-data:/app/data" data-store: image: "samply/blaze:develop" environment: BASE_URL: "http://localhost:8084" JAVA_TOOL_OPTIONS: "-Xmx1g" LOG_LEVEL: "debug" ports: - "8084:8080" volumes: - "data-store-data:/app/data" # spot: # image: "samply/spot" beam-proxy: image: "samply/beam-proxy:develop" environment: BROKER_URL: ${BROKER_URL} PROXY_ID: ${PROXY_ID} APP_0_ID: ${APP_0_ID_SHORT} APP_0_KEY: ${APP_0_KEY} APP_1_ID: ${APP_1_ID_SHORT} APP_1_KEY: ${APP_1_KEY} PRIVKEY_FILE: /run/secrets/proxy.pem secrets: - proxy.pem volumes: blaze-data: bridgehead-proxy: ccp-search-share-db-data: task-store-data: data-store-data: secrets: proxy.pem: file: ./pki/${PROXY_ID_SHORT}.priv.pem