43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
exporter:
|
|
image: docker.verbis.dkfz.de/ccp/dktk-exporter:latest
|
|
container_name: bridgehead-ccp-exporter
|
|
environment:
|
|
LOG_LEVEL: "INFO"
|
|
EXPORTER_API_KEY: "${EXPORTER_API_KEY}"
|
|
CROSS_ORIGINS: "https://${HOST}/ccp-teiler-root-config"
|
|
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"
|
|
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"
|
|
- "traefik.http.routers.exporter_ccp.middlewares=auth"
|
|
volumes:
|
|
- "exporter:/app/exporter-files"
|
|
|
|
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:
|
|
- "exporter-db:/var/lib/postgresql/data"
|
|
|
|
|
|
volumes:
|
|
exporter-db:
|
|
name: "exporter-db"
|
|
exporter:
|
|
name: "exporter"
|