Operate the lab
Stacks and file layout
Where every file lives on FHIRServer and what the key settings do.
~/fhir-lab/
├── hapi/ compose.yml, .env (db password), custom/ (logo)
├── oie/ compose.yml, .env (db password)
├── tunnel/ compose.yaml, .env (tunnel token)
├── web/ compose.yml, nginx.conf, html/ (landing page, /brand, /docs): public
├── private/ gateway nginx for fhir.fhirdrill.dev; html/ (portal/, explorer/, ig/)
├── mock-au-core/ compose.yml, load-examples.py, examples/: strict AU Core HAPI
├── hl7/ Dockerfile, send_adt.py, send-adt
├── synthea/ synthea.jar, output/
├── validator/ validator_cli.jar, validate, cache/
├── brand/ logo and icon source files
└── share/ oie-admin.ps1HAPI settings that matter#
Set as environment variables in ~/fhir-lab/hapi/compose.yml:
| Setting | Value | Why |
|---|---|---|
hapi.fhir.fhir_version |
R4 |
AU Core targets R4 |
hapi.fhir.use_apache_address_strategy |
true |
Links follow X-Forwarded-* headers, so they're correct through both the tunnel and the LAN |
hapi.fhir.tester.home.name |
fhirdrill |
The name shown in the web UI |
hapi.fhir.tester.home.server_address |
http://localhost:8080/fhir |
The web UI calls HAPI from inside the container |
hapi.fhir.custom_content_path |
./custom |
Served at /content/. The web UI loads content/custom/logo.jpg |
hapi.fhir.allow_external_references |
true |
References to other servers are allowed |
hapi.fhir.allow_multiple_delete |
true |
Conditional deletes can match many resources |
hapi.fhir.expunge_enabled, delete_expunge_enabled |
true |
$expunge is available |
hapi.fhir.bulk_export_enabled |
true |
$export is available |
hapi.fhir.implementationguides.* |
AU Base, Core, eReq, PS, extensions, THO | IGs installed at startup; see The IG lab |
spring.jpa.properties.hibernate.search.* |
Lucene in the hapi_lucene volume |
Full-text index for $expand |
JAVA_TOOL_OPTIONS |
-Xmx4g (mock: -Xmx2560m) |
Heap size. 2 GB ran out of memory once the terminology packages were added (26 Nov 2026) |
hapi.fhir.pre_expand_value_sets |
false |
Pre-expanding THO's thousands of value sets in the background exhausted heap and CPU. $expand still works on demand |
Nested settings as environment variables
Spring Boot accepts YAML paths as dotted environment variable names, so hapi.fhir.implementationguides.aucore.name works in compose environment: exactly as written.
The box#
| Hostname | FHIRServer |
| Address | 192.168.1.181 |
| CPU / RAM / disk | 4 cores · 16 GB · 220 GB (about 4% used) |
| OS | Debian, Docker with Compose v2 |