When a single Ubuntu server is the right way to install Medplum
A single Ubuntu server is the right choice when one team needs a self-hosted Medplum instance inside its own network, the workload is bounded, and the organization can accept a single machine as the unit of failure. If the requirement includes high availability, horizontal scaling or a cloud-native operating model, a larger platform such as the AWS CDK, Kubernetes or Docker paths is the better fit. Medplum's self-hosting docs list Ubuntu via an APT repository among the supported paths, alongside AWS with CDK, Docker, Kubernetes, DigitalOcean, building from source, and the Beta Terraform-based GCP and Azure deployments.
The APT install gives you the medplum package, a systemd service that runs the Medplum server, and an Nginx reverse proxy with Let's Encrypt certificates for TLS on your domain. PostgreSQL 16, Redis and Node.js are installed alongside it on the same host. Configuration lives in /etc/medplum, so the choices you make about base URLs, secrets and storage are concentrated in one place you can review. It does not provide high availability: a single host means a single point of failure, and PostgreSQL replication, automatic failover and multi-node Redis are separate projects you would have to plan and operate yourself. Confirm with your own team whether a short outage during host maintenance or a failed disk is acceptable before you commit.
Before choosing a VM, confirm three things with Medplum's current docs and your own environment: the Ubuntu and PostgreSQL versions the package supports at install time, whether your compliance team accepts a single-host layout for the data classification involved, and who will apply Medplum minor upgrades in sequence, since skipping minor versions causes startup failures. The Medplum self-hosting documentation is the place to verify the supported install paths before you start.
Which Ubuntu install option fits each team
This table compares the single-VM APT install with Docker or Kubernetes layouts, the AWS CDK path and the Beta Azure or GCP Terraform paths. Read each row against your team size, operating skills and availability needs to see how much of the stack you would run yourself. The main takeaway is that the APT install keeps PostgreSQL, Redis, Node.js and Nginx on one host you operate, which suits small teams and evaluations better than high-availability requirements.
| Option | Best fit team | What the team runs itself | Main trade-off |
|---|---|---|---|
| Single VM from APT repository | Small team with Linux administration skills and one environment to run | Ubuntu host, PostgreSQL 16, Redis, Node.js, Nginx, TLS renewal, backups and patching | One host is a single point of failure unless you add redundancy yourself |
| Docker layout | Team evaluating Medplum or building a proof of concept on a single machine | Container host, volumes, database and cache containers, and upgrades of each image | Not presented in the supplied guidance as a production layout, so confirm the production pattern with Medplum first |
| Kubernetes with Helm chart | Platform team already operating a cluster with external database and cache services | Cluster, ingress, namespaces, connections to external PostgreSQL, Redis and object storage | Adds cluster operations on top of the Medplum application and its data services |
| AWS with CDK (recommended by Medplum) | Team with AWS skills that wants Medplum's recommended self-hosting path | CDK code, IAM, SES and domain setup, with ECS, load balancers and RDS managed in your account | Requires AWS and infrastructure-as-code skills and an AWS cost footprint you must plan for |
| Azure or GCP with Terraform (Beta) | Team standardized on Azure or Google Cloud that accepts Beta status | Terraform, AKS or GKE, managed database and cache, ingress and secrets | Medplum marks these paths Beta, so confirm current status and support scope before committing |
| Availability needs | Teams that can accept a short outage during host maintenance or failure | Single VM covers basic needs; any failover requires external tooling and tested recovery | PostgreSQL does not detect primary failure or trigger failover on its own, so plan automatic failover separately |
| Share of stack you want to operate | Teams wanting full control of every component | APT install puts every component on hosts you manage | Managed cloud options shift some database and infrastructure work to the provider, with their own configuration to review |
How to run the Ubuntu 24.04 install in order
The sequence takes a bare Ubuntu 24.04 host to a single-server Medplum instance with its own database and cache, a systemd-managed service and an HTTPS endpoint in front. Each step ends with a check so a failure is caught before the next layer depends on it.
Prepare the host and DNS record
The platform or infrastructure team provisions an Ubuntu 24.04 server in infrastructure you control, applies OS updates, sets a fixed hostname, opens only the ports you need (typically 22 for administration, 80 and 443 for web traffic) and creates a DNS record for the public name Medplum will use. Confirm the host sizing and firewall rules against the Medplum self-hosting docs before you build. Done means the DNS name resolves to the server's address from outside your network and SSH access works with key-based login.
Install PostgreSQL 16 and Redis
The database owner installs PostgreSQL 16 from the Ubuntu package archive, creates a dedicated database role and database for Medplum with a strong password held in your secrets store, and installs Redis as the cache. Keep both services bound to localhost or a private interface for a single-server layout. Confirm the exact package names and the database setup commands in the Medplum self-hosting docs. Done means you can log in to PostgreSQL as the Medplum role and Redis answers a ping from the server.
Install Node.js
The platform engineer installs the Node.js version that the Medplum release notes and self-hosting docs specify for the server version you are deploying, using a method your security team approves, such as a vendor-supported repository. Pinning the runtime version avoids surprises during later upgrades. Confirm the required version against the Medplum docs before installing. Done means the node and npm commands report the pinned version on the PATH used by the service account.
Add the Medplum APT repository and install the package
The platform engineer adds the Medplum APT repository to the host's package sources, verifies the repository signing key, refreshes the package index and installs the medplum package. Confirm the repository location and key steps in the Medplum self-hosting docs, since they change over time. Installation places the server software and its service unit on the host. Done means the package manager reports the package as installed and the version matches the release you intend to run, taken from the Medplum releases page.
Edit configuration in /etc/medplum
The platform engineer sets the server configuration under /etc/medplum, including the public base URL, the app base URL, database connection details, Redis connection details and email settings. Keep secrets out of world-readable files and record each change in your change control system. Confirm the configuration file names and required keys in the Medplum server configuration docs. Done means the file parses without errors and every required key is set to the value your public DNS name and database use.
Start the systemd service
The platform engineer enables and starts the Medplum systemd service, then reads its status and recent logs to confirm the server connects to PostgreSQL and Redis without errors. Expect the first start to run database setup against the empty database. Confirm the unit name and service commands in the Medplum docs. Done means the service reports active, the logs show successful database and cache connections, and the local health endpoint responds on the server.
Put Nginx in front with a Let's Encrypt certificate
The platform engineer installs Nginx, configures a server block that proxies the public name to the local Medplum port, and obtains a Let's Encrypt certificate for that name using a validated ACME client. Enable HTTP to HTTPS redirection and confirm the renewal timer runs. Confirm the proxy ports and certificate tooling against the Medplum docs and your security standards. Done means a browser reaches the app over HTTPS with a valid certificate chain and a dry-run renewal succeeds.
Verify the service end to end
The platform engineer signs in through the web app, checks that the FHIR API answers a simple authenticated request, sends a test email if email is configured, and confirms that restarting the service brings it back cleanly. Record the version, configuration location and test results as the baseline for later upgrades. Done means the sign-in, API call, email and restart checks all pass, and the results are saved with the change record.
How the Medplum server, PostgreSQL, Redis and Nginx connect on one host
A browser request to a single-host Medplum install enters through Nginx, which terminates TLS with the Let's Encrypt certificate and forwards traffic to the Medplum server process on a local port. Nothing else is exposed to the network. The Medplum server is a Node.js and TypeScript application, and it hosts the components your users and applications actually call: Medplum Auth (OAuth, OpenID Connect and SMART-on-FHIR sign-in), the FHIR R4 API with GraphQL support, Bots for server-side logic, and the web app. Confirm the exact listening ports and proxy headers in the self-hosting documentation for the release you install, because the Nginx site file must match them.
The server keeps its system of record in PostgreSQL and uses Redis as its cache. Both services run on the same host in this layout, so the trust boundary is the machine itself: the database and cache listen on local interfaces, their credentials live in the server configuration under /etc/medplum, and anyone with root on the host can read both data stores and those secrets. Check that PostgreSQL and Redis are not bound to public interfaces, and confirm which local addresses and passwords the server configuration expects before you start the service.
The practical consequence is that the host is the unit you secure, back up and patch. Authentication decisions, FHIR resource data, cached sessions and audit records all pass through this one machine, so a failed disk or an unpatched package affects every clinical user at once. Decide early who holds root access, where configuration backups are stored, and how you will restore the database to a second host if this one is lost. Those choices shape whether a VM install is enough for your workload, which the sections on sizing and high availability address.
Single-server Medplum architecture on Ubuntu
The diagram starts with a user's browser reaching Nginx over HTTPS, where a Let's Encrypt certificate terminates TLS on the host. Nginx forwards requests to the Medplum server, which runs under systemd and reads and writes PostgreSQL 16 while using Redis as its cache. Configuration lives in /etc/medplum on the same machine. The dashed boundary marks everything you operate on the host, which is where your patching, backup and access controls apply. External identity providers sit outside that boundary and are optional, so check which sign-in method your users will need before you build the host.
Request path and data stores on a single Ubuntu host, with the optional identity provider outside the trust boundary.
Securing the single host and keeping it patched
A single Ubuntu host carries the Medplum server, PostgreSQL, Redis and Nginx, so one weak setting exposes all of them. The cards below cover network exposure, secrets, certificates, and the patch cadence for both Medplum and PostgreSQL, plus the compliance split between your team and Medplum.
Keep PostgreSQL and Redis private
PostgreSQL and Redis should accept connections only from localhost or a private network interface, never from the public internet. Check the listen_addresses setting in PostgreSQL's configuration and the bind directive in Redis, and confirm that your host firewall blocks ports 5432 and 6379 from outside. Re-test after every package update, since a changed default can reopen a port.
Protect secrets in /etc/medplum
The configuration directory holds database credentials, signing keys and mail settings, so its file permissions matter as much as its contents. Restrict ownership so only the service account and root can read the files, and keep secrets out of shell history, backups that leave the host, and version control. Record who can change these files and how a change is reviewed.
Renew Nginx certificates automatically
Let's Encrypt certificates expire on a short cycle, so renewal must run unattended and must reload Nginx after each renewal. Confirm the renewal timer is active with a dry-run renewal, and check that port 80 stays reachable for the validation challenge. Alert on renewal failures, because an expired certificate stops clinicians and integrations from signing in.
Apply Medplum patch releases weekly
Medplum publishes patch versions weekly, and its policy targets fixes for critical vulnerabilities within 7 days and high ones within 14 days. Schedule a recurring review of the GitHub releases page, read each patch note, and plan the update inside those windows. Medplum's upgrade guide requires moving through each minor version in sequence, so a patch cadence that falls behind can turn a routine update into a multi-step project.
Medplum versioning policyApply PostgreSQL minor releases
PostgreSQL releases minor versions at least once every three months, and these never change the storage format. Updating means replacing the executables and restarting the service, so it is a short, low-risk change compared with a major upgrade. Track the supported major version you run, since PostgreSQL 16 support ends in November 2028, and plan a separate major upgrade well before that date.
PostgreSQL versioning policyDivide compliance duties with Medplum
Medplum states that HIPAA and related compliance is a shared responsibility between Medplum and its customers. On a self-hosted host, your team owns the operating system, patching, access reviews, backups and logging, so those controls must appear in your own evidence. Ask Medplum which controls it covers for the software itself, and document which controls your team runs on the host.
Medplum compliance docsHow Medplum release cadence affects a VM install
A single-server Medplum install is only as current as the upgrades you apply to it, and Medplum's release cadence sets the rhythm. Medplum ships a major version once a year in Q4, two to three minor versions a year, and patch versions weekly. Each major version gets one year of Active support, then one year of Maintenance, and the Enterprise extension adds 12 more months of security patches, for 36 months in total. Check which of those windows your contract covers before you choose a version to standardize on. The latest release at research time was 5.2.5, published October 15, 2026, after 5.2.4 on October 14 and 5.2.3 on October 8, 2026.
On an APT host, the sequencing matters more than the frequency. Self-hosted Medplum has to be upgraded through each minor version in order, and skipping one causes startup failures, so a host on an older minor cannot jump to a current release in one step. Plan a staging host that mirrors the production VM, run each step there first, and budget for post-deploy data migrations, which can run for hours or days on large datasets. Confirm the exact upgrade sequence in the upgrading guide for your target version before you schedule a window.
The database has its own clock. PostgreSQL 16 is supported until November 9, 2028, and minor releases of it never change the storage format, so routine PostgreSQL patching is a binary replacement and restart. A major PostgreSQL upgrade is a separate project. Confirm with your Medplum version whether it supports the PostgreSQL major you plan to run, and record the date on which your Medplum and PostgreSQL support windows overlap, so the next forced upgrade is scheduled rather than discovered.
Questions teams ask before installing Medplum on Ubuntu
Is a single VM install enough for Medplum in production?
A single VM can run Medplum for a pilot, a test environment or a small workload, but production use depends on what happens when that one server fails. The install places the Medplum server, PostgreSQL 16, Redis, Node.js and Nginx on one host, so a disk, operating system or service fault can take the whole system down. PostgreSQL does not include software that detects a failed primary and promotes a standby, so automatic failover would need external tooling. Before you commit, confirm your availability expectations, recovery time and recovery point targets, backup schedule and restore tests, and how you will apply patches within Medplum's severity windows. If those targets cannot be met on one host, plan a multi-server layout from the start.
What does a self-hosted Medplum install cost, and who pays?
The software license costs nothing: Medplum is released under the Apache 2.0 license, and self-hosting is offered as a free Community option. The spend sits around the software: servers or VMs, storage, backups, mail delivery, certificates, monitoring, and the staff hours to install, configure, test and patch the stack. Some costs are one-time, such as the initial build and acceptance testing. Others recur, including infrastructure, patch cycles and each Medplum upgrade. If you need vendor-backed support, Medplum's Enterprise Self-Hosted option is custom-priced, so ask Medplum for its scope and terms. Hosted plans are a different product and are listed separately on the Medplum pricing page. Ask any partner for a quote built from a written scope that separates one-time and recurring items.
How long does an in-house Medplum install on Ubuntu take?
No researched figure is available for setup time, so measure it with a test install on your own host before you plan a go-live date. The duration depends on the team's skills and on inputs that other teams control. The main drivers are familiarity with Linux administration, PostgreSQL, Redis, Node.js, Nginx and systemd; how quickly DNS records, certificates and a mail sender are approved; whether the network team opens inbound ports 80 and 443; and the size and sequence of any data migration. A first install is usually slower than a repeat one because the team is still learning the configuration in /etc/medplum. Hardening, backup restore testing, monitoring and runbooks take additional time beyond the install itself. Ask any partner to show the phases, the owner of each dependency and the acceptance tests in the written scope.
What must our team provide before the Medplum install starts?
Four inputs block the install if they are missing, and each one has a lead time your team should confirm early:
- An Ubuntu 24.04 host with CPU, memory and disk sized for the Medplum server, PostgreSQL and Redis at your expected load.
- A DNS name that points at the host, so Let's Encrypt can issue a certificate for Nginx.
- Inbound access on ports 80 and 443 for certificate validation and HTTPS traffic.
- A mail sender, such as an SMTP relay or email provider on a domain your team controls, for invites, password resets and MFA codes.
Also settle a backup target, a place to store secrets and configuration under change control, and a maintenance window for the first upgrade cycle. The Medplum self-hosting documentation lists the Ubuntu path and should be checked against the release you plan to install.
Can our team install and run Medplum without an outside partner?
Yes, if your engineers can administer Linux, PostgreSQL, systemd and Nginx and can follow the install and upgrade documentation closely. The install itself is a bounded task covering the package, the service, configuration in /etc/medplum, the database and the proxy. Running the system is the harder part. Your team owns certificate renewal, PostgreSQL minor updates, Medplum upgrades through each minor version in sequence, patching within 7 days for critical vulnerabilities and 14 days for high ones under Medplum's policy, backup restore tests and monitoring. Confirm which named people hold each of these duties and whether a second person can respond when the first is unavailable. If that coverage is thin, the operating load is the real decision, not the install.
When should an organization hire a partner for Medplum on Ubuntu?
Consider a partner when the go-live date is fixed, when the team lacks Linux or database operations capacity, or when the deployment must produce compliance evidence before launch. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. A quote follows from that written scope, and DeployOpen does not publish a price list. Ongoing support, upgrades and continuous testing are available as retainers. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Those come from independent auditors and certification bodies.
Does a self-hosted Ubuntu install change our compliance position?
It changes who owns each control. Medplum's compliance documentation covers HIPAA, SOC 2 Type II, ONC certification, CFR Part 11, HITRUST e1, CLIA/CAP and ISO 9001, and it states that compliance is a shared responsibility between Medplum and its customers. On Medplum Cloud, part of the hosting and operations load sits with the provider. On your own VM, the host, operating system patching, database encryption, backups, access logs and network controls fall to your team. Confirm with your compliance lead which controls each framework requires and who will produce the evidence for each. The Medplum compliance documentation is the starting point for that mapping.
What happens if we skip Medplum versions during an upgrade?
The server can fail to start, because self-hosted Medplum must be upgraded through each minor version in sequence. Medplum's own example is a jump from v3.1.2 straight to v4.3.4, which causes startup failures. Post-deploy data migrations can also run for hours or days on large datasets, so plan maintenance windows from your database size. Test each step on a copy of production data, and confirm your rollback points before you start. Patch releases arrive weekly, and Medplum's policy targets security patches within 7 days for critical vulnerabilities and within 14 days for high ones, so keep an upgrade calendar. Check the Medplum upgrading guide for the exact sequence before each change.
What DeployOpen delivers and what your team keeps
The engagement moves from a written scope of the host and environment to a working single-server Medplum install, documented configuration and a handover your team can operate without us.
Scope the host and environment in writing
Before any work starts, DeployOpen and your team agree in writing the Ubuntu 24.04 host specification, network placement, DNS names, TLS approach, email sender, identity provider choice, backup target and who holds administrative access. Most engagements are fixed-scope, so the scope document also sets the deliverables and the acceptance checks. You know this step is done when both parties have signed off the scope and the list of open decisions is empty or assigned to an owner.
Install PostgreSQL, Redis and Node.js
DeployOpen installs PostgreSQL 16, Redis, and the Node.js runtime on the host from the packages your environment permits, and confirms that PostgreSQL 16 is on a supported release line for the planned service life. Database roles, least-privilege access and local-only listeners are set up before Medplum is connected. The check that closes this step is a clean connection test from the application user and a Redis ping, both recorded in the build log.
Build and harden the Medplum install
DeployOpen installs the medplum package from the APT repository, places the systemd service unit, configures Nginx as the reverse proxy and obtains a Let's Encrypt certificate for the agreed hostname. Host hardening covers firewall rules, unnecessary services, file permissions on configuration and secrets, and time synchronization. The step closes when the service starts under systemd, survives a reboot, and answers HTTPS requests on the agreed hostname.
Document /etc/medplum and the service
DeployOpen writes the configuration reference for the files under /etc/medplum, listing each setting, its purpose, the values chosen for your environment and where secrets are stored. The service documentation covers start, stop, restart, log locations, the expected startup sequence and the upgrade order for future minor versions. Your team receives the document as a versioned file in a repository you control, and the step is complete when your administrators can locate and explain every setting without asking us.
Verify the install with your team
DeployOpen runs a verification pass with your administrators and security reviewers covering TLS configuration, authentication to the Medplum login flow, MFA where configured, email delivery for a test invite, database and Redis connectivity, and a restore test from the backup set. Findings are logged with owners and resolved before handover. The step closes with a signed verification record that lists each check, its result and any accepted residual risk.
Hand over runbooks and the operating baseline
DeployOpen delivers runbooks for routine operations: patching the host and PostgreSQL minor releases, applying Medplum patch and minor versions in sequence, rotating certificates, restoring from backup and responding to a failed service start. Each runbook names the commands, the expected output and the escalation path. Handover is complete when your team has run at least one runbook step under observation and the runbook set is stored where your operators can reach it during an incident.
How DeployOpen scopes and supports a Medplum install
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For a single-server Medplum install on Ubuntu, we start from a written scope that names the server, database, cache, proxy, certificates, email and backup decisions before any package is installed.
How we scope
- Confirm the Ubuntu 24.04 host, network placement, DNS names and certificate approach before work starts.
- Agree in writing which PostgreSQL 16, Redis, Node.js, Nginx and Let's Encrypt components are in scope.
- Record whether a single VM is enough for your user counts, data volume and availability expectations.
How we build
- Install the medplum package from the APT repository and configure the systemd service under /etc/medplum.
- Set baseUrl, appBaseUrl, database, Redis and email settings, and store secrets outside plain config files.
- Test sign-in, TLS renewal, service restarts and a recorded test of backup and restore before handover.
How we hand over
- Deliver the written configuration, host layout, firewall rules and a runbook for the Medplum service.
- Document the version pinning and the minor-by-minor upgrade sequence Medplum requires for self-hosted servers.
- Walk your platform and security teams through the install, the backup schedule and the open items.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope install.
- Plan patch and upgrade windows against Medplum's release cadence and your own change control.
- Ask your compliance team which controls you own on a self-hosted deployment, since Medplum describes compliance as shared responsibility.

