OpenEMR on Docker vs Kubernetes vs VMs

Docker on a single host fits a small team with no cluster, Kubernetes fits a platform team that already runs and staffs clusters, and virtual machines fit teams that already run hypervisor, backup and patch processes. Confirm sizing and failover with a load test and a restore test in your own environment.

On this page

Which OpenEMR deployment model fits your team

Choose the deployment model your team already knows how to run. If you must host OpenEMR inside your own cloud account, data center or air-gapped network and you are choosing between Docker, Kubernetes and virtual machines, the decision turns mostly on existing skills. Docker on one host suits a small team without a cluster, Kubernetes suits a platform team already operating clusters, and virtual machines suit teams with mature hypervisor, backup and patching processes. OpenEMR is free and open-source software licensed under the GNU GPL v3.0, so the license itself costs nothing. The money you actually spend sits in infrastructure, staff time, testing and support, and each of those costs follows the skills you already have.

Whichever model you pick, the application stack stays the same, so the decision is really about who operates it. Recent OpenEMR releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database, and the project offers Docker deployment options. Check those requirements against your current runtime and database standards before you choose, because a platform that cannot run the required PHP version will stall at the next upgrade. Also note that OpenEMR 8.4.0 and 8.3.0 both fixed security vulnerabilities in FHIR APIs, the patient portal and billing, so your team must be able to ship upgrades on short notice. Ask who owns that work in each model: the container image, the host operating system or the hypervisor guest.

Run a short skills test before you read the rest of this comparison. Ask who can rebuild the OpenEMR host or container from scratch, who has restored the database from backup in the past year, and who applies operating system and PHP patches on a fixed schedule. If the answers point clearly to one platform, that model is probably your fit. Staff time for installation, testing and upgrades recurs with every release, while infrastructure cost depends on the model you pick. Support comes from the community and from the professional vendors the project lists on its wiki. DeployOpen plans, implements and supports self-hosted platforms inside your infrastructure under a fixed scope agreed in writing before work starts. Whichever provider you ask, request that scope in writing, including who owns backups, upgrades and retesting.

What changes between containers and virtual machines for OpenEMR

This table compares OpenEMR in containers, with Docker on one host and Kubernetes where a cluster is needed, against OpenEMR installed directly on virtual machines. Read each row as an operating task your team would own after go-live. The main takeaway is that containers change how you package, roll out and recover OpenEMR, while VMs keep the server model most infrastructure teams already run, and the Kubernetes and VM details must be confirmed in the repository and with the project's professional support vendors.

FactorContainers (Docker and Kubernetes)Virtual machines
Install methodDocker: the project documents Docker deployment options. Kubernetes: confirm supported manifests in the repository first.Recent releases need PHP 8.3 or later and a MySQL- or MariaDB-compatible database on the server.
Sizing controlDocker: CPU and memory limits per container on one host. Kubernetes: requests, limits and scaling, if replicas are supported.Resize the VM's CPU, memory and disk directly; growth beyond one host needs a separate design.
High availability approachDocker: one host is a single point of failure without a standby. Kubernetes: multiple replicas need shared file and session storage; confirm this.Pair two VMs behind a load balancer with a shared database; confirm file and session handling with the project.
Upgrade pathDocker: pull a new image tag and redeploy, keeping the prior image for rollback. Kubernetes: test database migrations before rolling out.Patch code and PHP in place after a snapshot, testing each release such as 8.4.1 on staging first.
Backup and restoreDocker: back up the database and the documents and configuration volumes. Kubernetes: add volume snapshots; test restores.Use filesystem snapshots plus database dumps, a process most backup teams already run.
MonitoringDocker: container health, restart counts and host metrics. Kubernetes: pod health, node pressure and cluster events.Host metrics, service status and log shipping through agents your monitoring team already runs.
Skills neededDocker: Linux and container operations, plus PHP and database administration. Kubernetes: cluster operations, storage and secrets.Linux administration, web server and PHP configuration, and database administration.
One-time versus recurring costDocker: one-time setup; recurring host, backups and patching. Kubernetes: one-time cluster build; recurring cluster upkeep.One-time: build and hardening of each VM. Recurring: any OS or hypervisor subscriptions, backups and patching.

How OpenEMR deployment topology changes across Docker, Kubernetes and VMs

OpenEMR needs a web tier, a PHP runtime and a MySQL- or MariaDB-compatible database in every model, and the deployment choice decides which of those parts share a failure domain. The same shared state sits underneath all three options, so the choice changes who operates each piece and where a failure stops. Use the cards to compare the models, then check each one against your recovery targets and your own network layout.

Docker on a single host

All three layers, the web server, the PHP runtime and the database, run on one host, so the host is the failure domain. A host outage, a failed disk or a bad kernel update takes the application and its data path down together, and anyone with host access can reach the database files, the sites/*/documents store and the configuration. Confirm that the database and documents store sit on storage you back up separately, and that direct web access to sites/*/documents is blocked at the web server.

Securing OpenEMR guide

Kubernetes pods and persistent volumes

Pods run the OpenEMR web and PHP containers and can be replaced on any node, but the database should live outside the pod lifecycle so a rescheduled pod never touches patient data. The sites/*/documents store needs a persistent volume that every replica mounts, and the trust boundary moves to ingress and TLS termination, where you decide which paths and headers reach the pods. Check that the ingress routes only HTTPS, that no ingress rule exposes sites/*/documents, and that your storage class supports the access mode your replica count needs.

Virtual machines and database placement

OpenEMR on PHP 8.3 or later runs against a MySQL- or MariaDB-compatible database, which can sit on a separate VM or share one with the web tier. A separate database VM adds a network trust boundary that you can firewall, at the cost of a second patching cycle and a second host to back up. Co-located VMs keep the network path short, but a compromise of the PHP tier then reaches the database process directly. Confirm the PHP and database versions your chosen release requires, and check that the web server on each VM blocks direct access to sites/*/documents.

OpenEMR releases

Shared state every model must handle

Five things persist whatever the topology: the database, the sites/*/documents store, session handling, backups and the encryption keys that protect data on disk. Each needs one owner, a tested restore and a location outside the web root. Backups are only useful with the keys that decrypt them, so store key copies apart from the data they protect. Sessions must survive a web node change if users move between nodes, and the key store is the trust boundary to review first. Block direct web access to sites/*/documents in every model.

Which deployment path a team should follow

The path starts with one question: does the team already run Kubernetes with people on call to operate it? A yes routes to the Kubernetes path, which still needs a confirmed database high availability design. A no moves to a second question: does the organization standardize on virtualization with tested backup and restore? A yes routes to the VM path. A no asks whether a single host with a tested restore meets the availability target. A yes routes to the Docker path, and a no means the availability target must be defined first. Check each answer against your own environment and recent restore test results.

The diagram routes a team by operating capacity and availability target.

Sizing and high availability: what to measure before choosing a model

Start with the sizing drivers, because they set how much capacity each model must supply. Count concurrent clinical users at peak hours, not total user accounts, and note how many of them write to the chart at the same time. Track database growth over a full year of activity, since encounters, orders and billing drive the largest tables. Measure the scanned document store under sites/*/documents, which lives on disk and must be backed up and shared alongside the database. Model FHIR API and patient portal traffic as separate load profiles, because external apps and portal logins often arrive outside clinic hours. Reporting queries also compete with clinical writes on the same database. Finally, confirm the PHP and database versions the release you plan to run requires. Check the OpenEMR releases page for the version you target, then confirm that your base images and managed database service support it.

High availability needs more than extra containers or VMs. The database needs its own failover design, such as a primary with a standby or a managed cluster, and your database administrator must own that design and its switchover procedure. The application tier must reconnect cleanly after a switch. Scanned documents under sites/*/documents must sit on shared or replicated storage so every application instance can read and write them, otherwise a failover can leave some patients' files unreachable. Put a load balancer in front of the instances and decide how sessions are handled, either through sticky sessions or through session storage every instance can reach, so a clinician does not lose a login mid-encounter. Schedule restore tests from backup, because a backup that has never been restored is untested.

Do not choose a model from architecture diagrams alone. Run a load test against a copy of your production-sized data set, using a traffic mix that reflects peak clinic hours, FHIR calls and portal logins. Record where response times degrade for each candidate model. Then run a failover test: stop the primary database and one application instance during the load, and measure how long users are affected and whether sessions and documents survive. Confirm the database high availability approach in writing with the OpenEMR project and your database administrator, including who operates failover, how replication lag is handled and what data loss is possible at switchover. Repeat both tests after each upgrade, since release requirements and schema changes can shift the results.

How OpenEMR deployment upgrades, backups and monitoring compare

This table compares how each deployment model handles upgrades, rollbacks, backups, monitoring, patching and staffing for OpenEMR. Read each row as the work your team owns after go-live. The main takeaway is that every model needs a patch cadence, because the 8.3.0 and 8.4.0 releases fixed security issues in the FHIR APIs, patient portal, billing, fax and SMS module and fee sheet.

AreaContainers (Docker or Kubernetes)Virtual machines
Upgrade pathBuild or pull the new image tag, run the upgrade steps from the release notes against your database, then test on staging first.Upgrade PHP, the web server and application files in place, then run the upgrade steps from the release notes. Plan a maintenance window.
Rollback methodRedeploy the previous image tag, but first confirm whether the release's database changes can be reversed.Restore a VM snapshot or a pre-upgrade backup of the database and files, taken together.
Backup scope (database, document files, configuration and encryption keys)Back up the database and document volumes, and keep configuration and encryption keys in a secrets store outside the image.Back up the database, document files and configuration on the host. Keys stored on the host need the same protection as the backup copies.
MonitoringWatch container restarts, resource limits and PHP error logs. Kubernetes adds node and pod health signals to track.Watch host CPU, disk, web server, PHP and database processes. Logs stay on the host unless you ship them to a central store.
Base image or operating system patchingRebuild images on a patched base regularly, then redeploy. Patch Docker hosts or Kubernetes nodes on their own schedule.Patch the guest OS, PHP, web server and database in place, with reboots in a planned window.
Security release cadenceRebuild and redeploy for each security release, including the 8.3.0 and 8.4.0 fixes.Apply each security release to the application and its host, including the 8.3.0 and 8.4.0 fixes.
Runtime and database requirementsPin the PHP 8.3 or later runtime and a MySQL- or MariaDB-compatible database in the image or a separate service.Install PHP 8.3 or later and a MySQL- or MariaDB-compatible database on the host, and pin both versions.
Version 8 and certificationStated deadline to upgrade to version 8 was March 1, 2026, to keep active certification. Confirm current status with the project.Stated deadline to upgrade to version 8 was March 1, 2026, to keep active certification. Confirm current status with the project.
Skills each model needsImage build and registry practice, Compose or Kubernetes manifests, secrets handling and database administration. Kubernetes adds cluster operations.Linux administration, PHP and web server tuning, database administration and host hardening. No container tooling, but every layer is yours.

How an OpenEMR upgrade runs before it reaches production

This sequence moves an OpenEMR release from the project's announcement to a tested production change, in the same order on all three models. Each step ends with a written output that the next step depends on, so a failed check stops the upgrade before patient data is touched. The model you run changes only the cutover and rollback mechanics.

  1. Read the release notes and security fixes

    The platform owner reads the notes for the target version before anything else changes. The 8.4.1 release on September 20, 2026 followed 8.4.0 on September 13, 2026 and 8.3.0 on August 18, 2026. The 8.4.0 and 8.3.0 releases fixed security vulnerabilities in the FHIR APIs, patient portal, billing, the fax and SMS module and the fee sheet, so check which of those your deployment uses. Done when a written note lists the target version, the security fixes, changed settings and the modules you run, and the security lead has approved it. Source: OpenEMR releases.

  2. Check PHP and database compatibility

    The platform owner confirms that the runtime matches the target release before a copy of the system is built. Recent OpenEMR releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database. Check the PHP version in the image or on the host, the database engine and version, and any PHP extensions your modules need. Ask the project to confirm which database versions it supports for the target release. Done when a compatibility table lists each component, its current version and its required version, and every gap has an owner and a fix.

  3. Back up the database, documents and configuration

    The operations team takes a full backup of the database, the document store under the sites documents directory, and the configuration files. Include container or orchestration definitions for Docker and Kubernetes, and take a VM snapshot where the model uses VMs. Store the backup where the upgrade cannot overwrite it. Done when checksums are recorded for every backup file and someone restores the set into a scratch environment, confirms that the system starts and that a known test patient record opens.

  4. Rehearse the upgrade in a staging copy

    The team builds a staging copy from the restored backup on an isolated network. It uses the same deployment method as production: the same image tag and manifests on Docker or Kubernetes, or the same package steps on a VM. The upgrade runs in staging first, and the migration output is saved for review. Done when staging runs the target version, the log shows no failed migration steps, and the exact commands are written into the runbook so production repeats them unchanged.

  5. Run SSO, FHIR and portal tests

    The QA and security team runs scripted checks against staging. These cover login through your directory integration (LDAP or Active Directory, or Google Sign-In where enabled), multi-factor prompts, FHIR R4 reads and searches, SMART on FHIR launches with the granular scopes your apps request, a bulk data export, patient portal login, and the billing and fax or SMS paths. Failures are logged and fixed in staging, then the affected tests run again. Done when the full set passes on the rehearsed build and the platform owner signs the results.

  6. Confirm schema behavior and the rollback point

    Before cutover, the platform owner asks the OpenEMR project how the target release handles schema migrations, and whether an older image or code tree can read a database that the new release has already migrated. The answer decides the rollback. Reverting the application may not be enough if the schema has changed, so a database restore from the backup may be required. Done when the answer is in writing and the rollback runbook names the restore method for each model.

  7. Cut over with a model-specific rollback path

    The change owner applies the upgrade in production during an agreed window. On Docker, the image tag in the Compose file changes to the target version and the container restarts. Rollback sets the previous tag and restarts again. On Kubernetes, the Deployment image updates, kubectl rollout status tracks the change, and kubectl rollout undo returns the previous revision. On a VM, the pre-upgrade snapshot is restored if needed. Every rollback still depends on the schema answer from the previous step. Done when the smoke tests pass and the rollback point is recorded.

Securing the deployment boundary for each model

The Securing OpenEMR guide sets four boundary controls: allow only HTTPS, consider exposing only port 443, remove setup.php and other admin scripts after installation, and block direct web access to sites/*/documents. Each model enforces them in a different layer. On Docker, the host firewall should publish only the reverse proxy's port 443, and the proxy should refuse requests to sites/*/documents. On Kubernetes, the ingress handles TLS and path rules, and network policies should limit traffic to the ingress, the OpenEMR pods and the database. On VMs, the same rules move to hypervisor network segmentation, the operating system firewall and the web server configuration. Whichever model you pick, check for setup.php after every rebuild or restore, since a new image or restored VM can bring back a script you already removed.

Multi-factor authentication, password policy, the upload file allow list and encryption of stored items are application settings, so they behave the same whichever model runs the application. Password rules live in Administration Globals. OpenEMR 6.0.0 added length limits, a rule requiring all 4 character types, reuse prevention for up to 5 prior passwords, expiration settings and a choice of Bcrypt, Argon or SHA512 hashing. If you use the LDAP or Active Directory login added in 6.0.0, the directory validates the password, but the user must still exist in OpenEMR, so confirm which policy governs each login path. The infrastructure still matters for stored items. Docker secrets, Kubernetes Secrets and VM disk encryption each keep keys in a different place, so ask who holds the encryption key, where it is stored and who can read it. Also confirm which MFA methods your release supports before you write the requirement.

Map each control to the layer that enforces it in your model, and record an owner, a test method and the date of the last test for each one. The guide points to a security assessment page for HIPAA and Meaningful Use requirements, so use that page as the starting checklist and confirm with your assessor which requirements apply to your organization. Plan to rerun these checks after every upgrade. OpenEMR 8.3.0 and 8.4.0 each fixed security vulnerabilities in the FHIR APIs, patient portal, billing, fax and SMS module and fee sheet, so a boundary that passed last quarter may need review after a patch. DeployOpen can plan and implement these controls, test them and prepare the evidence your compliance team reviews, but it does not certify the environment. Independent auditors and certification bodies make that determination.

Which team should run each OpenEMR deployment model

This illustrative clinic has one IT generalist who also handles printers, email and Wi-Fi. This team is most likely to run OpenEMR on a single host, using Docker or a conventional server install, because the operating surface is smaller and the project offers Docker deployment options. The generalist already manages Linux servers, backups and user accounts, but may not have tuned a database or worked with containers. Recent OpenEMR releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, so someone must apply version upgrades on a schedule.

  • Already in place: basic Linux administration, certificate renewal and day-to-day user support.
  • Hire or buy: a reviewer for the hardening steps in the Securing OpenEMR guide, including HTTPS-only access and removing setup.php after installation.
  • Often outsourced: the first installation, upgrade windows and an independent restore test.
  • Main risk: a single host with no standby, so a tested restore matters more than redundancy this team cannot maintain.

Before you choose a model, ask who will apply upgrades and run a restore test when the generalist is away.

What do buyers ask before hiring help for an OpenEMR deployment?

What does OpenEMR cost to run after deployment?

The software itself carries no license fee: OpenEMR is free and open-source under the GNU GPL v3.0, and the project has no paid edition. Your recurring cost sits in infrastructure (servers or cloud accounts, database, storage, backups, and network), staff time for patching, monitoring, and user support, and any external support contract you buy. One-time costs include the initial build, configuration, security hardening, and testing. Costs rise with user count, uptime targets, data volume, and the number of environments you keep (test, staging, production). For a quote, ask for each line separately: who does the work, what is one-time, what recurs monthly or yearly, and what triggers a change order. DeployOpen does not publish a price list; a quote follows from the written scope.

How long does a first OpenEMR deployment take?

No general duration applies, so the honest answer depends on scope, and you should ask for a written timeline before signing. Duration is driven by the number of sites and users, the authentication model (local accounts, LDAP or Active Directory, or Google Sign-In), interfaces you need (FHIR API clients, bulk export, billing or lab connections), data migration from your current system, the hosting target (Docker, Kubernetes or VMs), and how many approval gates your security and compliance teams require. A scope for one clinic with local accounts is smaller than a multi-site rollout with SSO and a documented audit trail review. Ask for milestones, the client decisions each milestone needs, the test and cutover plan, and what the timeline assumes about your staff availability. DeployOpen agrees timelines in writing before work starts because most engagements are fixed-scope.

Can our team run OpenEMR without outside help?

Many teams can, if they already run Linux servers or containers, a PHP and MySQL or MariaDB stack, and a patch routine, since the software is free and the project publishes a hardening guide. Be honest about the gaps first. Someone must own upgrades (recent releases require PHP 8.3 or later), backups with tested restores, the hardening steps in the Securing OpenEMR guide, access reviews and incident response. The project relies on a community of volunteers and professionals, and its wiki lists professional support vendors, so outside help can be bought in parts. Test your plan by asking who would perform a restore or an emergency upgrade, and how long each would take with the people you have.

Is Kubernetes required for high availability with OpenEMR?

No. A cluster is one option among several, so do not assume you need one. Availability depends on the design you choose: how the application tier is replicated, whether the database has a tested replication or failover design, where uploaded documents and sessions live, how traffic is balanced, and how you fail over during maintenance. Docker on a pair of VMs, a Kubernetes cluster, or VMs with a managed database can each reach a given target, and each carries different operating work for patching nodes, storage classes and secrets. Ask the architect to show the failure cases in writing: a node loss, a database failover, a bad upgrade and a restore. Cost drivers include node count, storage, and the staff hours needed to run the platform layer. Confirm the design with load tests before you commit to a target uptime.

Does an OpenEMR upgrade affect its ONC certification?

It can, so plan each upgrade as a change your certification record must reflect. The certification in the project's record names a specific version: OpenEMR 7.0.0 was ONC certified on 7/19/22 as a 2015 Edition Base EHR, and the community raised $16,125 to pay for that testing. The project's home page also told users to upgrade to version 8 by March 1, 2026 to keep their system's active certification. The latest release in the project's record is 8.4.1, released September 20, 2026. Before any upgrade, ask the project and your certifying body which version currently holds active certification, whether a patch release changes that status, and what regression evidence you must keep. Budget the test window, the rollback path and the documentation update as part of the work, since each adds staff time and possibly testing cost.

Does OpenEMR support Docker deployments?

Yes, the project offers Docker deployment options, but support depends on the image, the version and the configuration you choose, so confirm each before you build. Recent releases require PHP 8.3 or later and run on a MySQL- or MariaDB-compatible database, so your image and database versions must match that baseline. Docker suits teams that want reproducible builds and a clear upgrade path, and it still needs a host, persistent volumes for documents and the database, secrets handling, and a patch process for the base image. Cost drivers include the host count, storage, and the image scanning and patch cycles your security team requires. Ask any implementer to show which image tag, database and volume layout they would run, how upgrades roll forward and back, and where backups are taken.

What does DeployOpen do versus what an auditor does?

DeployOpen prepares systems, controls and evidence for a compliance assessment, while an independent auditor or certification body issues any report, attestation or certification. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms in your infrastructure, and it runs security testing that feeds the evidence pack. It does not issue audit reports, attestations or certifications. An auditor sets the test procedures, samples your records and decides whether the controls meet the framework. Cost drivers here are the number of frameworks in scope, the volume of evidence, and how many review cycles the auditor needs. Agree the evidence list in writing before work starts, including configuration baselines, access reviews, backup and restore records and audit log samples, and confirm the format with your auditor.

What should a fixed-scope OpenEMR quote include?

A fixed-scope quote should name the scope, deliverables, timeline, assumptions, client responsibilities and change process in writing before work starts. Most DeployOpen engagements are fixed-scope, so the written scope is the basis for the quote, and DeployOpen does not publish a price list. Ask for the hosting target and environments; the integrations, identity sources and FHIR interfaces; the hardening, backup and restore tests; the documentation and handover items; and the support or retainer terms after go-live. Ask what is one-time and what recurs, which client staff time the plan assumes, and what happens when scope changes. Keep the quote tied to the written scope so you can compare vendors line by line.

How DeployOpen scopes, deploys and supports OpenEMR in your infrastructure

DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For OpenEMR, the Docker, Kubernetes or virtual machine choice is made after reviewing your team's operating skills, PHP and database requirements, and availability needs. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names the OpenEMR version, the platform (Docker, Kubernetes or VMs) and its database.
  • Scope also covers sizing inputs, high availability targets, backup and upgrade expectations, and the environment where it runs.
  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing can follow as a retainer.

How we build

  • Deployment runs in your cloud accounts, data centers or air-gapped network, on the platform your team has chosen.
  • Configuration covers login options such as LDAP, Active Directory or Google Sign-In, plus password policy and multi-factor authentication.
  • Hardening follows the Securing OpenEMR guide: HTTPS only, setup scripts removed, and direct web access to document folders blocked.

How we hand over

  • Documentation covers the deployed topology, configuration, backup and restore steps, and the upgrade runbook.
  • Evidence such as configuration records and audit logging settings is prepared for your compliance team's review.
  • DeployOpen prepares evidence for your assessors, but independent auditors and certification bodies issue any audit report.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, agreed in writing.
  • Plan upgrades around OpenEMR's release notes, since recent releases fixed security issues in the FHIR API and patient portal.
  • Ask whether support covers the Docker, Kubernetes or VM platform you pick, and how security fixes are applied.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.