2022-05-16 08:19:49 +02:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gbn-connector-logs:
|
|
|
|
gbn-connector-db-data:
|
|
|
|
gbn-store-db-data:
|
2022-05-23 14:52:06 +02:00
|
|
|
bridgehead-proxy:
|
|
|
|
blaze-data:
|
2022-05-16 08:19:49 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
container_name: bridgehead-traefik
|
2022-05-23 16:05:56 +02:00
|
|
|
image: traefik:latest
|
2022-05-16 08:19:49 +02:00
|
|
|
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
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
forward_proxy:
|
|
|
|
container_name: bridgehead-forward-proxy
|
|
|
|
image: ubuntu/squid
|
|
|
|
environment:
|
|
|
|
http_proxy: ${http_proxy}
|
|
|
|
https_proxy: ${https_proxy}
|
|
|
|
volumes:
|
|
|
|
- "bridgehead-proxy:/var/log/squid"
|
|
|
|
|
|
|
|
landing:
|
|
|
|
container_name: bridgehead-landingpage
|
2022-05-23 14:52:06 +02:00
|
|
|
image: samply/bridgehead-landingpage:master
|
2022-05-16 08:19:49 +02:00
|
|
|
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-gbn-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.gbn-auth.basicauth.users=${bc_auth_users}"
|
|
|
|
- "traefik.http.routers.blaze_gbn.rule=PathPrefix(`/gbn-localdatamanagement`)"
|
|
|
|
- "traefik.http.middlewares.gbn_b_strip.stripprefix.prefixes=/gbn-localdatamanagement"
|
|
|
|
- "traefik.http.services.blaze_gbn.loadbalancer.server.port=8080"
|
|
|
|
- "traefik.http.routers.blaze_gbn.middlewares=gbn_b_strip,gbn-auth"
|
|
|
|
- "traefik.http.routers.blaze_gbn.tls=true"
|
|
|
|
|
|
|
|
gbn-connector:
|
|
|
|
container_name: bridgehead-gbn-connector
|
|
|
|
image: "samply/share-client:gbn-feature-environmentPreconfiguration"
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${CONNECTOR_POSTGRES_PASS}
|
|
|
|
volumes:
|
|
|
|
- "gbn-connector-logs:/usr/local/tomcat/logs"
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.gbn_connector.rule=PathPrefix(`/gbn-connector`)"
|
|
|
|
- "traefik.http.services.gbn_connector.loadbalancer.server.port=8080"
|
2022-05-23 16:05:56 +02:00
|
|
|
- "traefik.http.routers.gbn_connector.tls=true"
|
2022-05-16 08:19:49 +02:00
|
|
|
depends_on:
|
|
|
|
- "gbn-connector-db"
|
|
|
|
restart: "always"
|
|
|
|
|
|
|
|
gbn-connector-db:
|
2022-05-23 16:16:04 +02:00
|
|
|
container_name: bridgehead-gbn-connector-db
|
2022-05-16 08:19:49 +02:00
|
|
|
image: "postgres:10.17"
|
2022-05-23 16:05:56 +02:00
|
|
|
container_name: "bridgehead-gbn-connector-db"
|
2022-05-16 08:19:49 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_DB: "samply.connector"
|
|
|
|
POSTGRES_USER: "samply"
|
|
|
|
POSTGRES_PASSWORD: ${CONNECTOR_POSTGRES_PASS}
|
|
|
|
volumes:
|
|
|
|
- "gbn-connector-db-data:/var/lib/postgresql/data"
|
|
|
|
restart: "always"
|