This repository provides a complete, production-ready Docker Compose environment for running MedDream DICOM Viewer integrated with Orthanc PACS.
MedDream/
βββ docker-compose.yml # Core Docker Compose orchestration
βββ .env.example # Environment variable template
βββ .env # Active environment configuration
βββ config/
β βββ orthanc.json # Orthanc PACS server & DICOMweb configuration
β βββ application.properties # MedDream viewer & PACS backend configuration
βββ demo/ # DICOM Study Management & Viewing Web Application
β βββ package.json # Demo dependencies & scripts
β βββ server.js # Express PACS proxy & API backend
β βββ public/ # Frontend UI (HTML, CSS, JS)
β βββ README.md # Demo guide
βββ scripts/
β βββ import_sample.sh # Script to import DICOM files and output viewer URLs
βββ README.md # Complete setup & operations guide
A responsive web application is available in demo/ to browse studies, search/filter, and view them directly in MedDream:
cd demo
npm install
npm startAccess at: http://localhost:3000
docker compose up -ddocker compose psBoth containers (meddream-viewer and meddream-orthanc) will display healthy.
./scripts/import_sample.shThis automatically fetches a standard test study, uploads it to Orthanc, and outputs the direct MedDream URL.
| Service | Host Port | Internal Port | Description |
|---|---|---|---|
| MedDream Viewer | 8080 |
8080 |
Web DICOM Viewer |
| Orthanc REST API / UI | 8042 |
8042 |
Orthanc Explorer & REST API |
| Orthanc DICOM DIMSE | 4242 |
4242 |
C-STORE / C-FIND / C-MOVE port |
Navigate to:
http://<SERVER_IP>:8080/?study=<STUDY_INSTANCE_UID>
Example with uploaded sample:
http://localhost:8080/?study=1.3.6.1.4.1.5962.1.2.2.20040826185059.5457
To embed MedDream inside an <iframe> within your Laboratory Information Management System (LIMS), Electronic Health Record (EHR), or Hospital Information System (HIS), the security headers are configured in config/application.properties:
# 1. Disable restrictive legacy X-Frame-Options (ALLOW-FROM is deprecated by modern browsers)
security.frameOptionsPolicy=NONE
# 2. Configure Content-Security-Policy (CSP) frame-ancestors for your LIMS origin(s)
# Replace * or append specific origins, e.g., 'self' https://lims.yourdomain.com http://localhost:3000
security.contentSecurityPolicy=frame-ancestors 'self' *; default-src 'self'; base-uri 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; img-src 'self' data: blob:; connect-src 'self'; frame-src 'self' blob:; worker-src 'self' blob:; form-action 'self';
# 3. Allow postMessage cross-window communication from your LIMS parent window
security.postMessageWhitelist=*
# 4. Cross-origin authorization
security.authAllowedOrigins=*<iframe
src="http://localhost:8080/?study=1.3.6.1.4.1.5962.1.2.2.20040826185059.5457"
width="100%"
height="800px"
frameborder="0"
allow="clipboard-read; clipboard-write; fullscreen"
allowfullscreen>
</iframe>By default, the stack uses an embedded SQLite engine suitable for testing and development. When scaling up for production:
- See the complete DATABASE_MIGRATION.md for step-by-step guides on upgrading to PostgreSQL or MySQL/MariaDB, hybrid storage strategies, and backup/restore workflows.