bridgehead/gbn/docker-compose.yml

97 lines
3.3 KiB
YAML
Raw Normal View History

2022-05-09 12:57:24 +02:00
version: '3.7'
volumes:
gbn-connector-logs:
gbn-connector-db-data:
gbn-store-db-data:
services:
2022-01-21 09:32:21 +01:00
traefik:
2022-05-09 08:09:14 +02:00
container_name: bridgehead-traefik
2022-05-09 12:57:24 +02:00
image: traefik:2
2022-01-21 09:32:21 +01:00
command:
- --entrypoints.web.address=:80
2022-05-09 08:09:14 +02:00
- --entrypoints.websecure.address=:443
2022-01-21 09:32:21 +01:00
- --providers.docker=true
2022-05-09 08:09:14 +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}"
2022-01-21 09:32:21 +01:00
ports:
- 80:80
- 443:443
volumes:
2022-05-09 08:09:14 +02:00
- ../certs:/tools/certs
2022-01-21 09:32:21 +01:00
- /var/run/docker.sock:/var/run/docker.sock:ro
2022-05-09 08:09:14 +02:00
extra_hosts:
- "host.docker.internal:host-gateway"
2022-01-21 09:32:21 +01:00
2022-05-09 08:09:14 +02:00
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"
2022-01-21 09:32:21 +01:00
landing:
2022-05-09 08:09:14 +02:00
container_name: bridgehead-landingpage
2022-01-21 09:32:21 +01:00
image: nginx:stable
volumes:
- ../landing/:/usr/share/nginx/html
labels:
- "traefik.enable=true"
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
- "traefik.http.services.landing.loadbalancer.server.port=80"
2022-05-09 08:09:14 +02:00
- "traefik.http.routers.landing.tls=true"
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"
2022-05-09 12:57:24 +02:00
- "traefik.http.middlewares.ccp-auth.basicauth.users=${bc_auth_users}"
2022-05-09 08:09:14 +02:00
- "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"
2022-05-09 08:09:14 +02:00
- "traefik.http.routers.blaze_ccp.tls=true"
2022-01-21 09:32:21 +01:00
gbn-connector:
2022-05-09 08:09:14 +02:00
image: "samply/share-client:gbn-feature-environmentPreconfiguration"
environment:
POSTGRES_PASSWORD: ${CONNECTOR_POSTGRES_PASS}
volumes:
- "gbn-connector-logs:/usr/local/tomcat/logs"
2022-01-21 09:32:21 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.gbn_connector.rule=PathPrefix(`/gbn-connector`)"
- "traefik.http.services.gbn_connector.loadbalancer.server.port=8080"
depends_on:
- "gbn-connector-db"
restart: "always"
gbn-connector-db:
2021-12-21 13:48:28 +01:00
image: "postgres:10.17"
environment:
2022-02-09 10:58:32 +01:00
POSTGRES_DB: "samply.connector"
POSTGRES_USER: "samply"
POSTGRES_PASSWORD: ${CONNECTOR_POSTGRES_PASS}
volumes:
- "gbn-connector-db-data:/var/lib/postgresql/data"
2022-05-09 08:09:14 +02:00
restart: "always"