2023-02-13 15:29:45 +01:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
exporter:
|
2023-04-25 13:58:04 +02:00
|
|
|
image: docker.verbis.dkfz.de/ccp/dktk-exporter:latest
|
2023-02-13 15:29:45 +01:00
|
|
|
container_name: bridgehead-ccp-exporter
|
|
|
|
environment:
|
|
|
|
LOG_LEVEL: "INFO"
|
|
|
|
EXPORTER_API_KEY: "${EXPORTER_API_KEY}"
|
2023-04-11 15:57:12 +02:00
|
|
|
CROSS_ORIGINS: "https://${HOST}"
|
2023-02-13 15:29:45 +01:00
|
|
|
EXPORTER_DB_USER: "exporter"
|
|
|
|
EXPORTER_DB_PASSWORD: "${EXPORTER_DB_PASSWORD}" # Set in exporter-setup.sh
|
|
|
|
EXPORTER_DB_URL: "jdbc:postgresql://exporter-db:5432/exporter"
|
|
|
|
CLEAN_TEMP_FILES_CRON_EXPRESSION: "0 0 1 * * *"
|
|
|
|
TEMP_FILES_LIFETIME_IN_DAYS: "1"
|
|
|
|
CLEAN_WRITE_FILES_CRON_EXPRESSION: "0 0 2 * * *"
|
|
|
|
WRITE_FILES_LIFETIME_IN_DAYS: "30"
|
2023-03-22 14:41:07 +01:00
|
|
|
HTTP_RELATIVE_PATH: "/ccp-exporter"
|
2023-04-11 15:57:12 +02:00
|
|
|
HTTP_SERVLET_REQUEST_SCHEME: "https"
|
2023-04-25 17:29:05 +02:00
|
|
|
OPAL_ADMINISTRATOR_PASSWORD: "${OPAL_ADMINISTRATOR_PASSWORD}"
|
2023-02-13 15:29:45 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.exporter_ccp.rule=PathPrefix(`/ccp-exporter`)"
|
|
|
|
- "traefik.http.services.exporter_ccp.loadbalancer.server.port=8092"
|
|
|
|
- "traefik.http.routers.exporter_ccp.tls=true"
|
2023-03-22 14:41:07 +01:00
|
|
|
# TODO: Add basic auth in Teiler UI to access exporter?
|
|
|
|
#- "traefik.http.routers.exporter_ccp.middlewares=auth"
|
|
|
|
- "traefik.http.middlewares.exporter_ccp_strip.stripprefix.prefixes=/ccp-exporter"
|
|
|
|
- "traefik.http.routers.exporter_ccp.middlewares=exporter_ccp_strip"
|
2023-02-13 15:29:45 +01:00
|
|
|
volumes:
|
2023-03-22 13:13:04 +01:00
|
|
|
- "bridgehead-exporter:/app/exporter-files"
|
2023-02-13 15:29:45 +01:00
|
|
|
|
|
|
|
exporter-db:
|
|
|
|
image: postgres:15.1-alpine
|
|
|
|
container_name: bridgehead-ccp-exporter-db
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "exporter"
|
|
|
|
POSTGRES_PASSWORD: "${EXPORTER_DB_PASSWORD}" # Set in exporter-setup.sh
|
|
|
|
POSTGRES_DB: "exporter"
|
|
|
|
volumes:
|
2023-03-22 13:13:04 +01:00
|
|
|
- "bridgehead-exporter-db:/var/lib/postgresql/data"
|
2023-02-13 15:29:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
2023-03-22 13:13:04 +01:00
|
|
|
bridgehead-exporter-db:
|
|
|
|
name: "bridgehead-exporter-db"
|
|
|
|
bridgehead-exporter:
|
|
|
|
name: "bridgehead-exporter"
|