FHIR DrillDocs

Get started

How the lab fits together

The machines, containers, networks and paths a request or message travels through.

The whole lab runs on one Debian machine on your home network, FHIRServer (192.168.1.181). It is completely separate from CrowServer: it has its own Docker host, its own Cloudflare account and its own domain.

FHIR Drill architecture Internet users reach Cloudflare Access, then the fhirlab tunnel, then HAPI FHIR. On the LAN, the HL7 sender sends MLLP to the integration engine, which posts FHIR to HAPI. Both have their own Postgres databases. Internet You (browser)Postman · curl Cloudflare Accessemail one-time code fhirdrill.devpublic · brand + docs FHIRServer · 192.168.1.181 · Docker cloudflaredtunnel "fhirlab" nginx (web):8080 read-only HAPI FHIR 8.12:8080 /fhir (R4) Integration engine:8443 admin · :6661 MLLP FHIR REST PostgreSQLhapi db PostgreSQLoie db HL7 senderADT^A04 MLLP
Orange is the path a request from the internet takes. Everything else stays on your LAN.

Docker stacks#

Each part is its own Docker Compose project in ~/fhir-lab, so you can restart or rebuild one without touching the others.

Stack Folder Containers Network
hapi ~/fhir-lab/hapi hapi-hapi-1, hapi-db-1 hapi_default
oie ~/fhir-lab/oie oie-engine-1, oie-db-1 oie_default
tunnel ~/fhir-lab/tunnel tunnel-cloudflared-1 hapi_default, fhirdrill_edge
fhirdrill-web ~/fhir-lab/web fhirdrill-web-web-1 fhirdrill_edge
fhirdrill-private ~/fhir-lab/private fhirdrill-private-web-1 fhirdrill_edge
mock-au-core ~/fhir-lab/mock-au-core mock-au-core-hapi-1 (H2 database) fhirdrill_edge
openemr ~/fhir-lab/openemr openemr-openemr-1, openemr-db-1 (MariaDB 11.4) openemr_default, fhirdrill_edge

Synthea, the validator and the HL7 sender are not long-running services. Each runs as a short-lived container only when you use it.

Network boundaries#

  • Only two things are reachable from the internet: fhir.fhirdrill.dev, which requires the Access login, and fhirdrill.dev, which is public and serves only these docs and the logos.
  • The tunnel can't reach the integration engine. The engine and its Postgres are on oie_default, which the tunnel is not attached to.
  • MLLP (ports 6661–6670) and the engine Administrator (8443) are LAN only.
  • Both databases have no published ports, so only the containers in their own stack can reach them.

Where data lives#

Data Stored in Survives docker compose down?
FHIR resources Docker volume hapi_pgdata Yes, unless you add -v
Engine channels, messages and settings Volumes oie_pgdata and oie_appdata Yes, unless you add -v
Synthea output ~/fhir-lab/synthea/output/fhir Yes (plain files)
Validator package cache ~/fhir-lab/validator/cache Yes (plain files)
FHIR Drill lab docs · synthetic data only · built 2026-11-26