Skip to content

Compose

Bell Eapen edited this page Jan 17, 2026 · 1 revision

DHTI CLI: Compose

The dhti-cli compose command is the heart of the DHTI stack. It generates and manages the docker-compose.yml file that defines your entire healthcare application environment.

Usage

npx dhti-cli compose [OP] [FLAGS]

Operations ([OP])

  • add: Add specific modules to your stack.
  • delete: Remove modules.
  • read: Display the current compose configuration.
  • reset: Reset the compose file to a default state.

Modules

You can mix and match these modules to build your platform:

Module Description
openmrs The core EMR system for patient records and UI.
langserve Hosting for your GenAI "Elixirs".
ollama Local LLM inference (runs Llama 3, Mistral, etc.).
redis Vector store for RAG (Retrieval Augmented Generation).
neo4j Graph database for relationship mapping.
langfuse Observability for tracing LLM chains.
cqlFhir HAPI FHIR server with Clinical Quality Language (CQL) support.
mcpx Connects to external MCP tools and "Docktor" containers.
docktor Manages ML inference containers.

Examples

Basic Stack

Create a simple stack with OpenMRS and an Elixir backend:

npx dhti-cli compose add -m openmrs -m langserve

Full AI Stack

Add local LLM, vector store, and observability:

npx dhti-cli compose add -m openmrs -m langserve -m ollama -m redis -m langfuse

Dry Run

See what changes would be made without actually modifying the file:

npx dhti-cli compose add -m docktor --dry-run

Configuration Flags

  • --dry-run: Preview changes.
  • --host: Use host environment variables (e.g., ${VAR_NAME:-default}).
  • -f, --file: Specify a custom path for the docker-compose file (default: ~/dhti/docker-compose.yml).

Clone this wiki locally