When running Medplum on premises or at the edge is the right call
Self-hosting Medplum on premises or at the edge is the path when a contractual, government or clinical constraint rules out cloud hosting. Medplum's own self-hosting guidance names two situations where this makes sense: contractual on-premises requirements, such as US federal work, and low-connectivity or embedded deployments with modest data needs, such as a FHIR server inside a medical device or a lightweight instance in a rural clinic. If your constraint is one of these, the question shifts from whether to self-host to how much of the operating work your team can carry. Read the Medplum self-hosting considerations before you commit, because the trade-off between control and operating load is spelled out there.
Medplum is released under the Apache 2.0 license and maintained in the public medplum/medplum repository, so the software itself carries no licensing barrier to running it inside your own walls. What you operate is a Node.js and TypeScript server that uses PostgreSQL as its database and Redis as its cache. Your team owns those two stateful services, their backups, their patching and their capacity in every site you deploy. Confirm early which Medplum components your use case needs, such as Medplum Auth, the FHIR R4 API, Bots or the HL7 client and server, because each one adds configuration and monitoring to the footprint at a given site.
Plan the air gap and the upgrade path together, because they constrain each other. An isolated site cannot pull container images, packages or updates on demand, so every artifact must be vetted and carried across the boundary. Self-hosted Medplum also has to move through each minor version in sequence, and skipping versions causes startup failures, so an offline site needs a documented upgrade cadence it can actually execute. Ask your Medplum contact and your security team to agree on how packages are verified, who approves each release, and how long a site may run on a version before it falls outside the security patch window.
Which deployment model fits which constraint
This table compares four ways to run self-hosted Medplum, matching each to the constraint it answers, the infrastructure it needs and the operating load it carries. Read it by starting with the constraint you cannot change, then check whether the load in the right-hand column is one your team can carry.
| Deployment model | Constraint it answers | Infrastructure it needs | Operational load |
|---|---|---|---|
| On-premises data center | Contractual or government rules that keep hosting inside facilities you own, such as US federal work | Hardware or virtualization, PostgreSQL, Redis, Node.js hosts, load balancing, TLS, and an internal mail relay | High: you own hardware lifecycle, patching, backups, capacity and every upgrade step |
| Private cloud or Kubernetes cluster you control | Data residency or account isolation needs, with the ability to run the Helm chart or Terraform paths in your own accounts | A cluster you operate, external or in-cluster PostgreSQL and Redis, object storage, ingress and secrets management | High to moderate: you run the cluster and Medplum, and the sibling Kubernetes page covers the chart |
| Single-server VM (Ubuntu APT) | A small, contained instance where a single site with modest data volume is enough and a cluster is not justified | One Ubuntu 24.04 server with PostgreSQL, Redis, Node.js and Nginx, plus a domain and certificate | Moderate: fewer moving parts, but no built-in redundancy, so recovery and disaster planning fall to you |
| Edge or embedded instance | Low connectivity in rural clinics, or a FHIR server embedded in a medical device, with modest data needs | Small local hardware with local storage, a sync or outage plan, and a defined data retention scope | Varies widely: remote updates, device fleet management and intermittent connectivity raise effort per site |
| Build from source | Environments where the team must control every artifact, including air-gapped builds with vetted dependencies | Build toolchain, internal package mirrors, container registry, and a process to verify packages before they cross the boundary | High: you own the build pipeline and the software integrity checks |
| Minimum required for any model | Upgrade sequencing: every minor version must be applied in order, so no model removes this step | A tested staging environment, backups, and a rollback plan for each version | Recurring: upgrades run through each minor version, and data migrations can run for hours or days on large datasets |
| Security patch targets | Vendor patch expectations inside your own change control: 7 days for critical and 14 days for high under the Medplum versioning policy | A patch window process, a way to receive and test releases, and an isolated staging path for offline environments | Recurring: you schedule and test every patch on hardware you control, including edge devices |
How the Medplum components map to an isolated network
A self-hosted Medplum deployment inside an isolated network needs more than the Medplum server. The Medplum server is built on Node.js and TypeScript and runs the FHIR R4 API, the clinical data repository, Bots and the web app, and it depends on PostgreSQL as its database and Redis as its cache. Both of those stores must sit inside the boundary with the server, so plan their hosting, backups and network paths as part of the same design. Medplum Auth handles OAuth, OpenID Connect and SMART-on-FHIR sign-in, and it can use Medplum itself as the identity provider, an external provider such as Google, Auth0 or AWS Cognito, or a domain-level corporate identity provider. In an isolated network, confirm that your chosen identity provider is reachable from inside the boundary and that its metadata, keys and multi-factor methods work without outbound internet access.
Two supporting services often get overlooked. Binary storage holds documents, images and other attachments, and the presigned URL signing keys that protect them must be generated and distributed inside the network rather than fetched from an outside service. Email carries invites, password resets and MFA codes, so decide whether your own mail relay sits inside the boundary and whether it can reach the recipients your users need. Each of these components has its own configuration and secrets, which is why the Medplum self-hosting documentation should be read against your network diagram before any build starts.
Edition and support scope are a separate decision. Medplum prices its hosted plans (Free, Production, Premium and custom Enterprise) separately from self-hosting, which is offered as a free Community option or as custom-priced Enterprise Self-Hosted, as listed on the Medplum pricing page. Ask the vendor which edition covers the support, patching windows and security response you need inside an isolated network, and get the answer in writing. Your team also carries the operational load for every component listed here, so confirm the support hours and escalation path before you commit to the design.
Where each Medplum component sits in an isolated deployment
The diagram starts with clients on the inside of the trust boundary, which reach the Medplum server over the internal network. The server stores clinical records in PostgreSQL and uses Redis as its cache, and it authenticates users against an identity provider that also sits inside the boundary. Updates enter only through the private artifact path: images and packages are downloaded outside, verified, and then carried across in one direction. Check that no component on the inside calls out to a public registry, package mirror, or identity service during normal operation.
Components and the one-way update path in an isolated Medplum deployment.
Setting up an air-gapped Medplum install step by step
This sequence takes a Medplum server from an empty, isolated host to a verified instance that starts, authenticates users and restores from backup, with each stage checked before the next begins.
Confirm the target OS and hardware
The platform team records the operating system version, CPU, memory, disk and network zones for each host, then confirms the Node.js, PostgreSQL and Redis versions that the Medplum release you chose requires. Check the exact requirements in the Medplum self-hosting documentation and the release notes for the version you plan to pin, since the supported set can change between releases. Confirm the target major and minor version against the Medplum versioning policy so you know which patch stream you will receive. The step is done when a signed-off build sheet lists every host and every pinned version, and the security team has approved it.
Stage images and packages in the enclave
On a connected staging network, the team downloads the Medplum server artifacts, the container images or packages, the operating system packages and their dependencies, then copies them into a private container registry and internal package repository inside the isolated boundary. For Kubernetes-based installs, the control plane images are pulled ahead of time and pointed at the private registry, following the kubeadm approach to offline images. The check is an inventory file that matches every artifact to its version and checksum, and a test pull from a host inside the enclave that succeeds with no outbound internet access.
Verify package integrity before import
Before anything crosses the isolation boundary into production, the team verifies checksums and signatures for each artifact against values published by the vendor and records the results in the change record. This is the control that supply chain requirements such as NERC CIP-013-2 ask for: verification of software integrity and authenticity for vendor software and patches. Scan the bundle with the tools your security policy approves and keep the scan output with the inventory. The step is complete when every artifact has a recorded verification result, and any failure has been rejected and re-staged from a clean source.
Stand up PostgreSQL and Redis
The database team installs PostgreSQL and Redis from the internal repository on hosts or clusters that the Medplum server can reach over private networking only. They set up database roles with least privilege, enable TLS for client connections, and configure backups before any Medplum data is written. Check that the Medplum database account can connect and create the schema, and that Redis answers from the server subnet and nowhere else. Done means both services accept authenticated connections from the Medplum host and a first backup has completed successfully.
Install the Medplum server
The platform engineer installs the Medplum server from the verified packages or images, pinned to the version on the build sheet, and registers it as a managed service so it restarts after a reboot. Do not install a different minor version than the one you intend to run in production, because upgrades must proceed through each minor version in sequence. The check is a clean start in the service log, with no migration errors, and a health endpoint that responds from the internal network.
Set baseUrl, appBaseUrl and identity
The team sets the server baseUrl and appBaseUrl to the internal hostnames that users and applications will use, then configures the identity provider and multi-factor authentication for the deployment. Medplum supports its own identity, external providers and domain-level corporate identity providers, so the choice must match what your directory can reach inside the enclave. Confirm that the identity provider and any MFA service are hosted within the boundary or on an approved path. Done means a test administrator can sign in through the configured flow, and the sign-in is blocked for a user who lacks MFA enrollment.
Configure email and binary storage
Because the enclave has no internet route, email must go through an internal relay or an SMTP service that your organization hosts, and binary storage must point to an on-premises object store or file system. Configure the sender address, confirm that invites, password resets and MFA codes leave the server, and set up binary storage with the signing keys generated inside the boundary. Avoid temporary signing keys outside development. The check is a test invite delivered to an internal mailbox and an uploaded test document that can be retrieved through a presigned link.
Run a restore test and sign in from permitted clients
The operations team restores the most recent database backup and binary storage copy into a separate, isolated instance, starts Medplum against it, and confirms that records and documents return intact. Then they sign in from a permitted client device on the approved network path and confirm that clients outside the allowed list are refused. Record the restore duration and any issues in the runbook, since that becomes the baseline for future recovery planning. The step closes the install only when the restored instance matches the source for test records and the permitted-client check passes.
Security and operations that the isolated network adds
An isolated Medplum deployment takes on work that a cloud provider or an internet-connected team would otherwise absorb. The six areas below connect through one theme: every update, secret, session and package has to be planned, moved and verified by your own team.
Patching across the boundary
Medplum's versioning policy targets security patches within 7 days for critical vulnerabilities (CVSS 9.0 or higher) and within 14 days for high ones (CVSS 7.0 to 8.9). In an air-gapped network, those targets only hold if your team has a repeatable process to bring patches, container images and npm packages across the boundary. Ask who approves each transfer and how long it takes in your environment.
Medplum versions policySequential minor-version upgrades
Self-hosted Medplum must move through each minor version in order. Skipping a version, such as going from v3.1.2 straight to v4.3.4, causes startup failures. Plan a staging environment that mirrors production, and keep the upgrade path on a calendar so the isolated network does not fall several minors behind the supported releases.
Upgrading guideLong post-deploy data migrations
Some upgrades run data migrations after the new version starts, and on large datasets these can run for hours or days. Confirm the expected migration time with Medplum using a copy of your data volume, and decide in advance whether clinicians can work during the window. Keep a tested database backup taken before the upgrade starts so a failed migration has a clean rollback point.
Secrets and signing keys
A disconnected site usually cannot lean on a cloud secrets service, so database passwords, JWT signing material, client secrets and binary presigned URL keys must be stored, rotated and backed up by your own process. Define who generates and distributes each key, where it is kept, and how a rotation is recorded so that an audit can show the chain of custody.
Remote vendor access
If the environment falls under a rule such as NERC CIP-005-7, Interactive Remote Access to high or medium impact systems must pass through an Intermediate System with encryption and multi-factor authentication, and active vendor sessions must be detectable and disableable. Treat this as an example to confirm with your compliance lead. Decide who may open a vendor session, how it is logged, and how it is ended.
CIP-005-7 textSoftware integrity checks
Under a supply chain control such as NERC CIP-013-2, procurement processes must address verifying the integrity and authenticity of vendor software and patches. The same idea applies to any isolated boundary: each Medplum release, container image, library and operating system package should be checked against published checksums or signatures before it enters the network. Record who performed each check and where the artifact came from.
CIP-013-2 textHow compliance scope changes off Medplum Cloud
On Medplum Cloud, part of the compliance workload sits with the hosting provider and Medplum, which is why the company's compliance documentation describes compliance as a shared responsibility between Medplum and its customers. Off Medplum Cloud, that split moves. Your organization operates the hosts, network segmentation, database, backups, identity provider, key management, logging and patching, so your team owns more of the controls behind each framework Medplum's documentation names, including HIPAA, SOC 2 Type II, ONC certification, 21 CFR Part 11, HITRUST e1, CLIA/CAP and ISO 9001. Read the documentation at Medplum compliance and map each control it assigns to the customer against the components you deploy.
Before the first install, agree the assessment boundary with your assessor and any external auditor. They need a diagram of where the Medplum server, PostgreSQL, Redis, binary storage, the email relay and any Medplum Agent hosts sit, which administrators can reach them, and where audit logs are kept. Ask them which of your existing controls, such as access reviews, change control and vulnerability management, they will accept as evidence for the self-hosted stack. For contracts that reference federal rules, ask the assessor to confirm whether the system falls under FedRAMP or CMMC scope. Those rules depend on the contract and the data, so treat them as questions to resolve with the assessor, not conclusions this page can give.
DeployOpen plans and builds the environment, configures the controls, and prepares the evidence your assessor and auditors will request, such as configuration records, access documentation and test results. DeployOpen does not issue audit reports, attestations or certifications, and no DeployOpen deliverable replaces your assessor's or auditor's judgment. Scope the engagement in writing so that each control has a named owner on your side, and confirm before work starts which evidence is needed for each framework that applies to your deployment.
Questions teams ask before running Medplum on premises
Does self-hosting Medplum cost less than using Medplum Cloud?
It depends on what you already run and what you must staff, and self-hosting has no published price. The Medplum software is open source under the Apache 2.0 license, so the license itself is free. Hosted plans have published monthly prices on Medplum's pricing page, while self-hosting is offered as a free Community option or as a custom-priced Enterprise Self-Hosted plan. Your real cost is the infrastructure you run (compute, PostgreSQL, Redis, object storage, backups, networking), the staff who operate it, the support contract, and the upgrade work. Ask for a written quote for the Enterprise Self-Hosted option, and ask which of those components are included and which you pay for separately.
How long do a Medplum install and its first upgrade take?
The duration depends on the drivers below, so confirm an estimate against your own environment rather than a generic figure. A single-VM install with prepared infrastructure is far shorter than a multi-node deployment with external PostgreSQL, Redis, object storage and TLS. Your network approvals, identity provider setup, email delivery and change windows often set the pace more than the software does. For upgrades, the main driver is data volume: Medplum's upgrading guide notes that post-deploy data migrations can run for hours or days on large datasets, so test the migration on a copy of production data before you schedule it.
What does the work need from our team?
You need people and approvals in four areas. Network: outbound access for package and image sources (unless you are air-gapped), inbound routing through your load balancer, DNS, and TLS certificates. Staff: people who can operate Linux, PostgreSQL and Node.js services, and who can run backups and restores. Change control: a documented process for configuration, secrets, patching and upgrades, with rollback steps. Security: a decision on how secrets are stored and how administrative access is granted. Confirm these skills in your team before the project starts, because a gap in database or Linux operations is the most common reason self-hosted projects slow down.
Can our own team install Medplum without a partner?
Yes for a single virtual machine, if your team has solid Linux and PostgreSQL skills and follows the official documentation. The Ubuntu installation path uses an APT repository with PostgreSQL, Redis, Node.js and Nginx, which is a contained scope. Multi-node deployments on Kubernetes or a cloud provider are harder, because they add infrastructure as code, managed database and storage choices, ingress, certificates and scaling decisions. Air-gapped installs are the hardest, because every container image, package and dependency must be mirrored and verified before it enters the isolated network. A fixed-scope engagement from DeployOpen can cover planning, the build and handover, with the written scope agreed before work starts.
How do we keep Medplum upgrades in the correct sequence?
Upgrade through each minor version in order, never jumping over one. Medplum's upgrading guide states that self-hosted Medplum must be taken through each minor version in sequence, and skipping versions causes startup failures. Keep a written upgrade plan that lists the target versions in order, the release notes you reviewed for each, the database migration steps, and the rollback point for each stop. Check the release page for the current version before you plan, and track Medplum's annual major, minor and weekly patch cadence. Test every stop in a staging environment that mirrors production data volume, and keep a verified database backup before each step.
What happens if we skip a Medplum version during an upgrade?
Skipping a minor version can stop the server from starting, which turns a planned upgrade into an outage. Medplum's upgrading guide gives an example of a jump between two versions that causes startup failures, so the safe path is always to step through each intermediate release. If you have already skipped a version, do not keep restarting the service. Restore the last verified backup on a separate host, identify the sequence of versions you need to pass through, and rehearse that path before you touch production. Ask Medplum or your support provider to confirm the correct recovery steps for your exact versions.
Can a small edge instance run Medplum in a clinic or device?
A small instance can work when the data needs are modest and the site has unreliable connectivity. Medplum names low-connectivity or edge deployments with modest data needs, such as a FHIR server embedded in a medical device or a lightweight instance in a rural clinic, as cases where self-hosting makes sense. Edge instances are less suited to large patient populations, heavy concurrent use, long-running bulk jobs, or sites that need central reporting in real time. Plan how data syncs back to a central system, how the device is patched and backed up, and how it is physically secured. Confirm the minimum hardware and resource needs with Medplum before you choose a device, because those figures are not part of this page.
Which compliance tasks stay with us when Medplum runs on premises?
Your organization keeps responsibility for the infrastructure, access and data handling of its own deployment. Medplum's compliance documentation describes compliance as a shared responsibility between Medplum and its customers, so a self-hosted deployment moves more controls into your hands than a hosted one does. You own the hosting environment, backups, encryption settings, audit logging, access reviews, patching and incident response, and you must map those to the regulations you answer to. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications; independent auditors and certification bodies do that work.
Deciding between your own team and a partner
An in-house team gains direct control over where Medplum runs, which data stays inside the boundary, and when changes happen. The cost is that the team absorbs every operational task that a cloud provider or vendor would otherwise share. For an on-premises or edge Medplum deployment, those tasks include upgrading through each minor version in sequence, since skipping versions causes startup failures, and scheduling post-deploy data migrations that can run for hours or days on large datasets. They also include applying security patches on the timelines Medplum's versioning policy sets, moving packages and container images across an isolated boundary with integrity checks, and restoring backups into a test environment on a schedule. Your own staff must also cover PostgreSQL, Redis, the Node.js server and any local identity provider, which means the people who run the system need to be available during every patch window, not only during the initial build.
A partner works from a written scope that names the environment, the components, the deliverables and the timelines, all agreed before work starts. For an isolated network, that scope typically covers the offline artifact process, the install and configuration, the upgrade runbook and rollback plan, backup and restore testing, and the handover documentation your operators will use. Confirm with any partner exactly which of these they will deliver, which they will only document, and which remain with your team after handover. Ask whether the scope includes testing the restore path and a rehearsal of at least one upgrade on a copy of production data, since those are the steps most often skipped and most often needed.
Most DeployOpen engagements are fixed-scope, so the quote follows from the written scope rather than a standard price list. Ongoing support, upgrades and continuous testing are available as retainers, which suit the recurring work described above. Ask for the one-time build cost and the recurring retainer as separate line items, and ask what changes the price, such as additional sites, larger datasets, additional identity providers or a shorter patch window. Compare that quote with the staffing cost of keeping the skills in-house, including on-call coverage for patch windows that your own team would otherwise need to plan and staff.
How DeployOpen scopes and delivers a self-hosted Medplum on premises
On-premises and edge Medplum projects fail most often at the start, when constraints are left implicit, and at handover, when no one owns the upgrade path. The cards below follow the work in order, from written scope through an offline install and testing to runbooks and optional ongoing support, so the client's security and compliance teams can review each step.
Scope the environment in writing
Record where Medplum will run, which contractual or government requirements apply, what network boundary exists, and which clinical systems or devices must connect. Confirm the data volume and the number of users the instance must serve, because a clinic device and a regional hospital server need different sizing and storage. The written scope defines what is delivered, what the client provides, and what is excluded before any build begins.
Self-hosting considerationsBuild the offline artifact
Assemble every container image, package and dependency needed for the install in advance, then verify each one against its published checksum or signature before it crosses into the isolated network. Keep a manifest of versions so the same artifacts can be reproduced for a rebuild or an upgrade. Confirm with the vendor which artifacts the chosen install method requires, since the list differs between Kubernetes, Docker and single-server installs.
Configure identity, storage and email
Set up the sign-in path the client's policy requires, whether Medplum's own identity provider, a corporate provider or client credentials for machine access, with multi-factor authentication where it is mandated. Connect binary storage and an email relay that works without public internet access. Then test sign-in, document upload and password reset from inside the boundary, and run a restore from backup before go-live.
Hand over runbooks and upgrade planning
Deliver runbooks for startup, backup and restore, certificate rotation, secret rotation and access review, written for the client's own operators. Include an upgrade plan that moves through each minor version in sequence, with a rollback window and time reserved for long-running data migrations. Confirm which team owns each runbook after handover so no step depends on a consultant who has left.
Upgrading the server guideOptional upgrade and testing retainers
Ongoing retainers can cover Medplum upgrades, patch intake and continuous security testing of the deployed instance. Patch intake matters because Medplum's policy targets critical vulnerabilities within 7 days, so the retainer should state who reviews each release, who approves it and how the offline artifacts are refreshed. Ask for the retainer terms in writing, including response expectations and what is excluded.
Versions and release policy
