Dashboard for MedDream viewer study-opening performance
961
A small, self-contained web app that reads a MedDream telemetry database (MySQL or PostgreSQL) and shows study-opening performance as an expandable timeline browser: the latest opens, newest first, each drawn as a multi-lane timeline of the startup/loading phases and expandable into per-series queue-wait → download → decode lines. Search, per-column sorting, modality / date / version / study-role filters, and a client-side time-window zoom sit above the list.
docker run -d --name mdstatistics -p 8050:8050 \
-e MDSTATS_DB_TYPE=postgresql \
-e MDSTATS_DB_HOST=db.example -e MDSTATS_DB_NAME=mdstatistics \
-e MDSTATS_DB_USER=stats -e MDSTATS_DB_PASSWORD=secret \
meddream/mdstatistics:latest
Then open http://localhost:8050.
Database host inside Docker:
127.0.0.1points at the container itself, not your database. Use the DB container/service name on a shared Docker network,host.docker.internal(add--add-host host.docker.internal:host-gatewayon Linux), or the database's real hostname/IP.
services:
mdstatistics:
image: meddream/mdstatistics:latest
restart: unless-stopped
ports:
- "8050:8050"
environment:
MDSTATS_DB_TYPE: postgresql
MDSTATS_DB_HOST: postgres # e.g. the database service name
MDSTATS_DB_NAME: mdstatistics
MDSTATS_DB_USER: ${MDSTATS_DB_USER}
MDSTATS_DB_PASSWORD: ${MDSTATS_DB_PASSWORD}
MDSTATS_AUTH_ENABLED: "1"
MDSTATS_AUTH_USERNAME: ${MDSTATS_AUTH_USERNAME}
MDSTATS_AUTH_PASSWORD: ${MDSTATS_AUTH_PASSWORD}
MDSTATS_AUTH_SECRET_KEY: ${MDSTATS_AUTH_SECRET_KEY}
| Variable | Default | Purpose |
|---|---|---|
MDSTATS_DB_TYPE | mysql | mysql or postgresql |
MDSTATS_DB_HOST | 127.0.0.1 | Database host (see note above) |
MDSTATS_DB_PORT | 3306 / 5432 | Database port (default per type) |
MDSTATS_DB_USER | root | Database user |
MDSTATS_DB_PASSWORD | root | Database password |
MDSTATS_DB_NAME | mdstatistics | Database name |
MDSTATS_PORT | 8050 | Port the app listens on |
MDSTATS_URL_BASE_PATH | (root) | Subpath when behind a reverse proxy, e.g. /mdstatistics |
MDSTATS_AUTH_ENABLED | off | 1 requires a login for all routes |
MDSTATS_AUTH_USERNAME | (none) | Login username (required when auth is on) |
MDSTATS_AUTH_PASSWORD | (none) | Login password (required when auth is on) |
MDSTATS_AUTH_SECRET_KEY | random | Session-signing key; set a fixed value to keep sessions (incl. "Remember me") across restarts |
MDSTATS_AUTH_COOKIE_SECURE | true | Send the session cookie over HTTPS only; set false only for plain-HTTP testing |
MDSTATS_FRONTEND_ONLY_TS | HTJ2K + JPEG Baseline | Comma-separated transfer-syntax UIDs the viewer decodes purely client-side ("Front-End only"); drives the FO column |
Notes:
0.0.0.0 inside, so there is no need to set
MDSTATS_HOST.MDSTATS_AUTH_*) for any internet-facing deployment,
and set a fixed MDSTATS_AUTH_SECRET_KEY.8050/tcp — the web UI (override with MDSTATS_PORT).Content type
Image
Digest
sha256:d14669d25…
Size
81.8 MB
Last updated
7 days ago
docker pull meddream/mdstatistics