pediatric-ai-scribe-v3/docker-compose.monitoring.yml
Daniel 1b5faa3a01 Update bilirubin to exact AAP 2022 values, add exchange transfusion
Phototherapy thresholds updated with exact values extracted from
PediTools (validated against AAP 2022 nomograms):
- Separate tables for GA 35, 36, and 38+ weeks
- With and without neurotoxicity risk factors
- Hour-specific values at 12, 24, 36, 48, 60, 72, 84, 96, 120h

Previous approximations were 1-3 mg/dL too low (conservative but
inaccurate). New values match the published AAP 2022 curves exactly.

Exchange transfusion thresholds added for GA 38+ weeks (with/without
risk factors). Displayed alongside phototherapy threshold in results.

GA selection expanded: 35, 36, 37, 38, 39, 40+ weeks.
Chart now shows both phototherapy and exchange transfusion lines.

Also: fixed Loki port conflict (3100->3101), added logs.pedshub.com.
2026-04-11 05:50:19 +02:00

52 lines
1.6 KiB
YAML

## Monitoring stack — Loki + Grafana
## Usage: docker compose -f docker-compose.yml -f docker-compose.monitoring.yml up -d
##
## Grafana: http://localhost:3003 (admin/admin on first login)
## Loki: http://localhost:3100 (internal, used by Grafana)
##
## The app sends logs to Loki via HTTP at http://loki:3100/loki/api/v1/push
services:
loki:
image: grafana/loki:3.4.2
ports:
- "127.0.0.1:3101:3100"
command: -config.file=/etc/loki/loki-config.yaml
volumes:
- loki-data:/loki
- ./monitoring/loki-config.yaml:/etc/loki/loki-config.yaml:ro
restart: unless-stopped
container_name: pedscribe-loki
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://localhost:3100/ready"]
interval: 30s
timeout: 5s
retries: 3
grafana:
image: grafana/grafana:11.6.0
ports:
- "127.0.0.1:3003:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=pedscribe
- GF_USERS_ALLOW_SIGN_UP=false
- GF_AUTH_ANONYMOUS_ENABLED=false
volumes:
- grafana-data:/var/lib/grafana
- ./monitoring/grafana-datasource.yaml:/etc/grafana/provisioning/datasources/loki.yaml:ro
- ./monitoring/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- ./monitoring/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
loki:
condition: service_healthy
restart: unless-stopped
container_name: pedscribe-grafana
# Override the main app to add Loki env
pediatric-scribe:
environment:
- LOKI_URL=http://loki:3100
volumes:
loki-data:
grafana-data: