WooCommerce on Docker vs Kubernetes vs VMs

Choose between WooCommerce on Docker, Kubernetes and virtual machines by team skills, availability needs and upgrade cadence. Kubernetes usually adds the most operating work, and the shared database and order storage set the availability ceiling more than the runtime does.

On this page

WooCommerce deployment model: when Docker, Kubernetes or VMs fits

VMs or a single managed Docker host suit a team that must run its own WooCommerce store inside its cloud account, data center or private network but has no running cluster, and Kubernetes fits a team that already operates and staffs a cluster. Standing up a cluster only for one store adds control plane upgrades, node patching, ingress and secrets work and on-call duties that the store does not need, so the test is whether those duties already sit with a staffed platform team. Teams that already run and staff a cluster can host WooCommerce there and reuse its ingress, secrets management, logging and patch processes, which keeps the new operating surface small. Teams without that platform should confirm who will patch the Docker host or VM image, rotate its credentials and restore it after a failure before choosing a runtime, since those duties stay with the store.

The availability outcome depends mostly on the shared database and order storage, so review those before the runtime. WooCommerce recommends MySQL 8.0+ or MariaDB 10.6+, PHP 8.3 or greater, WordPress 6.9 or greater, and a WordPress memory limit of 256 MB or more, along with HTTPS. Those are software baselines, and the WooCommerce server requirements give no capacity guidance for your catalog, traffic or order volume. Avoid legacy PHP 7.4 or MySQL 5.6, which the requirements call end of life and a security risk. Confirm whether High-Performance Order Storage is active, since it is enabled by default for new installations from WooCommerce 8.2 and stores orders in wc_orders and wc_orders_meta, tables your backup and failover design must cover. Then load test the runtime and database together in your own environment before fixing node counts or VM sizes.

WooCommerce deployment model compared on availability, upgrades and effort

This table compares running WooCommerce on a Kubernetes cluster and on virtual machines across scaling, availability, upgrades, backups, skills, cost and switching. Docker is the packaging layer described in the architecture section, so it does not appear as a column. Cells marked for confirmation depend on your cluster, hypervisor or database service, so check them with your platform team before you choose.

FactorOption A (Kubernetes cluster)Option B (virtual machines)
Scaling patternAdd pods or nodes under an autoscaler. Uploads and sessions must live outside pods. Confirm autoscaler and shared storage with your platform team.Add VMs behind a load balancer or resize them. Usually more manual steps. Confirm load balancer and hypervisor capacity with your platform team.
High availability designSeveral replicas spread across nodes. Database and shared storage high availability are separate services. Confirm node spread and database failover with your platform team.At least two VMs behind a load balancer, with database replication. Confirm host-level redundancy on the hypervisor with your platform team.
Upgrade pathBuild a new image with the updated PHP, WordPress or WooCommerce, then roll it out. Confirm registry and pipeline access with your platform team.Patch or rebuild each VM in turn, including PHP and web server updates. Confirm the change window and rollback method with your platform team.
Backup scopeDatabase, uploads volume, and the image and manifests in Git. Site content lives only in the database and uploads volume. Confirm volume snapshots with your platform team.Database, uploads and VM snapshots, which also capture OS and PHP settings. Confirm snapshot consistency with the database service owner.
Skills neededContainer image builds, Kubernetes manifests or Helm, cluster operations, plus WooCommerce and WordPress administration.Linux administration, PHP-FPM and web server tuning, plus WooCommerce and WordPress administration.
Cost driversNode capacity, storage, observability tooling and platform team time. Managed cluster fees vary by provider. Confirm them with your platform team.VM count and size, hypervisor licensing if commercial, and administrator hours for patching. Confirm hypervisor terms with your platform team.
Cost of switching laterMoving to VMs means rebuilding manifests and setting up a new runtime. Order data stays in the WooCommerce database, so the switch mainly changes the runtime.Moving to Kubernetes means containerizing the site and moving uploads and sessions to shared storage. Confirm storage design with your platform team.

How the WooCommerce stack maps onto Docker, Kubernetes and VMs

Every option runs the same WooCommerce stack: WordPress, PHP, the WooCommerce plugin, a MySQL or MariaDB database and HTTPS in front. The runtime decides how those pieces are packaged, scaled and patched, but it does not change the requirements. Check each card below against your own versions before you choose.

Docker containers on a host

Docker containers on a host keep each WordPress instance in its own container, so the image becomes the unit you rebuild, test and roll back. Host capacity planning starts from the memory each instance is allowed to use, and every container needs a network path to the shared database. Ask how the image pins PHP and WordPress versions and whether a WooCommerce release such as 11.2.1 triggers a rebuild. Confirm that uploads sit on storage that survives a container replacement.

Kubernetes pods and replicas

Kubernetes adds replicas and self-healing on top of the same containers, so one WooCommerce deployment can run several pods behind a single ingress. Scaling out only works when every replica reads the same database and the same uploads, so check the storage class for shared writes before you set the replica count above one. Each pod runs the versions in its own image, so a rolling update can serve mixed WordPress or WooCommerce versions during checkout. Ask who owns ingress, TLS certificates and pod resource settings for each store.

Virtual machines and guest patching

Virtual machines keep the OS and PHP under one patch owner. Each store runs in its own VM with the web server, PHP and WordPress installed on the guest OS, so upgrades follow that VM's package manager and change window. This suits teams that already patch and back up VMs for other workloads, and it usually leaves more idle capacity per store than a shared host. Confirm who applies PHP and database patches, how snapshots are taken without leaving the database inconsistent, and whether the guest OS packages still offer the PHP version WooCommerce needs.

Shared database and uploads

The database and uploads are the shared dependency. All three options must reach one MySQL 8.0 or later or MariaDB 10.6 or later database, and WordPress.org's own recommendation is MariaDB 10.11 or greater, so set your floor there. From WooCommerce 8.2, High-Performance Order Storage is stable and on by default for new installations, storing orders in dedicated tables such as wc_orders and wc_orders_meta. Back up the database and the uploads directory together, because restoring one without the other leaves orders and media out of step. Confirm the restore test you will run before go-live.

HPOS docs

Requirements for every instance

Every instance carries the same requirements. Each instance needs WordPress 6.9 or later, PHP 8.3 or later, the WooCommerce plugin (GPL version 2 or later), HTTPS, and a WordPress memory limit of 256 MB or more set per instance. These requirements are the same under Docker, Kubernetes and VMs, so the runtime choice changes how you meet them and leaves the list as it is. The WooCommerce server requirements also flag PHP 7.4 and MySQL 5.6 as end of life with security risks, so do not treat them as a fallback.

Server requirements

How requests and data flow through a WooCommerce deployment

A shopper's browser sends an HTTPS request to a load balancer or reverse proxy in the public edge. The proxy forwards each request to one WooCommerce instance, whether a container, a Kubernetes pod or a VM web node. Every instance reads and writes the same MySQL or MariaDB database, and shared storage holds uploads where the design needs it. The trust boundary sits between the public edge and the private network that holds the database. Admin staff reach the instances over a separate private path, and backups copy the database to their own store. Check that only the proxy faces the internet and that uploads and backups are protected too.

Illustrative flow from shopper request to shared database.

Why the database and order storage set the availability ceiling

Every container, pod or VM running WooCommerce points at the same database, so the web tier can be replicated freely while the database sets the practical availability ceiling. Adding a second web node does nothing for checkout if the single MySQL or MariaDB primary fails. Before comparing Docker, Kubernetes and VMs, ask your DBA or database vendor how failover works, how long it takes in your environment, and whether replicas can take over writes. Those answers are yours to confirm. Session data, uploads and scheduled jobs also need a design that does not depend on one node, so check those too. The deployment model changes how quickly web nodes recover, but the database decides whether orders can be placed during an outage.

High-Performance Order Storage is the database setting that matters most to this decision. From WooCommerce 8.2, released in October 2023, it is stable and enabled by default for new installations, storing orders in dedicated tables such as wc_orders and wc_orders_meta, separate from the WordPress posts tables used by older storage. Read the High-Performance Order Storage documentation before you plan the migration. Your DBA, reporting team and any integration that reads orders should know which layout is live, because queries, backups and restore tests all depend on it. Existing stores must confirm their order storage setting before changing deployment models. Moving from VMs to containers or Kubernetes while also changing how orders are stored combines two risky changes in one cutover. Check the setting in WooCommerce admin and on a staging copy before you set the migration window.

WooCommerce's server requirements recommend MySQL 8.0 or later, or MariaDB 10.6 or later, and describe legacy MySQL 5.6 as end of life and a security risk. Confirm the exact version with your database vendor before you pick a platform, because a managed database service, a self-run cluster and a database on a VM each move patching and failover duties to a different team. Ask who applies minor upgrades, who runs failover tests, how backups are restored into a clean environment, and which recovery point and recovery time targets the design must meet. Write the answers down. They set the availability ceiling more firmly than the container platform does.

Which team fits each WooCommerce deployment model

Teams without container or cluster experience usually get the most predictable result from a virtual machine. A VM is a server the team can log into, inspect and patch with tools it already knows. WooCommerce runs on the stack it expects: PHP, a supported database and a web server. The main learning curve is operational. The team owns OS, PHP and database patching on a schedule, and it must keep WordPress and WooCommerce current. Check the WooCommerce server requirements before sizing the host, because the minimum PHP, database and WordPress versions set the baseline for the whole stack.

  • Model that fits: one VM or a small pair of VMs behind a load balancer, with the database on a separate server so the first deployment is easy to reason about.
  • Backups tested first: restore the database and the uploads directory to a separate host before go-live, and record how long the restore takes.
  • Database HA plan: decide whether the database is a single instance restored from backup or a replicated pair, and name the person who performs failover.
  • Patch process: write a schedule for OS, PHP and WooCommerce updates, and check version requirements before each change.
  • Confirm with platform staff: who holds root access, where logs and monitoring are collected, and whether the hosting team already runs a database HA pattern.

Before choosing this model, confirm with your infrastructure team who owns patch windows, where backups are stored and who is on call when the shop is down.

How upgrades, backups and monitoring change by model

This table compares how upgrades, backups, monitoring, patching and staffing change between a Kubernetes cluster and virtual machines for WooCommerce. Read each row as the work your team owns under each model, and track both vendor channels, since security issues go through Automattic's HackerOne program and paid extensions go through the WooCommerce.com premium support portal. The main takeaway is that both models need the same release checks, while Kubernetes moves more of the rollout work into image builds.

FactorOption A (Kubernetes)Option B (virtual machines)
UpgradesBuild a new image, test it in staging, then roll out. Point releases like 11.2.1 (October 9, 2026) follow the same path.Update each host after a snapshot and staging test. Point releases like 11.2.1 (October 9, 2026) still need a rollback plan.
Release timingWooCommerce 11.2.1 shipped October 9, 2026, two days after 11.2.0. Plan image rebuilds around quick patches.The same timing applies. Each quick patch means another snapshot, staging run and in-place change on every VM.
BackupsBack up the database and any upload or media volume. Confirm where uploads live before you assume the image holds them.Snapshot the VM and dump the database. Restores usually recover the full machine, so test a restore on a schedule.
MonitoringTrack pod restarts, probe failures, resource limits and PHP-FPM errors. Confirm which metrics stack your cluster team already runs.Track host CPU, memory, disk, web server and PHP-FPM logs per VM. Agent and alert setup repeats on each machine.
Image or host patchingPatch base images and rebuild when they change. Node operating system patches are handled at the cluster layer.Patch the OS, web server, PHP and database packages on each VM. Re-check PHP 8.3 or greater after each OS upgrade.
Runtime requirementsConfirm PHP 8.3 or greater, WordPress 6.9 or greater and a 256 MB memory limit in the image before each release.Confirm PHP 8.3 or greater, WordPress 6.9 or greater and a 256 MB memory limit in php.ini and on each host.
Security and extension trackingSecurity issues go through Automattic's HackerOne program. Track it alongside the WooCommerce.com premium support portal for paid extensions.Follow the same HackerOne and WooCommerce.com portal channels, then patch in place after staging tests.
Skills neededContainer builds, Kubernetes manifests, secrets and volumes, plus WordPress and PHP operations.Linux administration, web server and PHP-FPM tuning, plus WordPress and PHP operations.

Upgrading WooCommerce safely on any deployment model

This sequence applies to WooCommerce on Docker, Kubernetes and virtual machines alike. Each model changes how the new version is built and swapped in, while the checks stay the same. The result is a documented upgrade with a tested backup and a rollback path ready before any production change.

  1. Read the release notes for the target version

    The platform owner reads the WooCommerce release notes for the target version and for each version skipped on the way there. The review covers checkout, payment gateway, order storage and REST API changes, plus the WordPress notes that the target release depends on. Every installed extension and theme is checked against the target version, and its vendor is contacted where support is unclear. The step closes with a written list of breaking changes and a named owner for each one. Ask for the time each step takes in the written scope before work starts.

  2. Confirm PHP, database, WordPress and memory

    Compare the current stack with the WooCommerce server requirements: PHP 8.3 or greater, MySQL 8.0 or later or MariaDB 10.6 or later, WordPress 6.9 or greater, a WordPress memory limit of 256 MB or more, and HTTPS. On Docker, this means the base image and PHP runtime. On Kubernetes, it means the image and the pods that run PHP and reach the database. On VMs, it means the operating system packages and PHP-FPM. Legacy PHP 7.4 and MySQL 5.6 are end of life and pose security risks, so any environment still running them needs a platform change first. The step closes with a gap list that the owner signs off before any build starts.

  3. Back up the database and files

    Take a full database dump and a copy of the file tree, including wp-content, uploads, plugins, themes and configuration. If high-performance order storage is enabled, the order tables wc_orders and wc_orders_meta must be in the dump and matched against production order counts. On Docker, back up the volumes and the compose or manifest files that define them. On Kubernetes, take persistent volume snapshots and a database dump. On VMs, use filesystem and database backups. The step closes when one backup has been restored to a separate host and the restored site loads with the same order count as production.

  4. Build the upgrade in staging

    Build the target version in a staging environment that matches production. On Docker, rebuild the image with pinned tags for WooCommerce, WordPress and PHP. On Kubernetes, deploy the new image tag to a staging namespace that uses the production configuration and secret references. On VMs, apply operating system and PHP updates to a clone of the production machine so the live host stays untouched. Keep the previous image digest or a VM snapshot so the old version can return. The step closes when staging serves the site on the target version, health checks pass and the logs show no new errors.

  5. Run the upgrade on a copy of production

    Restore the latest production backup into staging, then run the WooCommerce and WordPress database upgrades and update extensions in the order the release notes give. Watch for fatal errors, plugin conflicts, deprecated function calls and slow queries against the order tables. Record which stages ran, what changed and which fixes were manual, so the production run repeats the same steps. The step closes with a clean upgrade log, a written list of fixes and a staging copy ready for the checks in the next step.

  6. Verify orders, payments and checkout

    Run end-to-end tests against the staging copy. Add products to a cart, apply coupons and shipping, then check out with each payment gateway in its sandbox mode. Refund a test order and move it through each order status. Confirm order emails, stock reduction, tax calculation, webhooks and existing REST API integrations using their current keys. Compare order counts and totals with production. Use test credentials only, so live payment data stays in production. The step closes with a signed test log that the commerce owner and the finance contact both approve.

  7. Promote the change to production

    Schedule the production change in a window agreed in the written scope, then switch traffic to the new version. On Docker, move the service to the new image tag. On Kubernetes, roll out the new deployment and watch its health checks. On VMs, run the upgrade on the live machine after a fresh backup, or swap in the updated host. Monitor orders, payment callbacks and error logs while the team watches the first live checkouts. The step closes when production serves checkout on the target version and the owner confirms that orders are flowing.

  8. Keep a tested rollback path

    Rehearse the rollback in staging before promotion. Return to the previous image digest, the previous Kubernetes revision or the VM snapshot, then restore the database backup and confirm that the site and orders match. Keep the previous image, snapshot and backup until the owner agrees the new version is stable. Record who can trigger the rollback and the conditions that justify it. The step closes when the rollback has been run once in staging and the runbook names the people who can start it in production.

What the server requirements mean for sizing

Sizing for WooCommerce depends on traffic, catalog size, installed plugins, order volume and the integrations that call the store, and none of those appear in the published requirements. The WooCommerce server requirements list minimums: PHP 8.3 or greater, MySQL 8.0 or greater or MariaDB 10.6 or greater, WordPress 6.9 or greater, a WordPress memory limit of 256 MB or more, and HTTPS. Treat these as the floor for any runtime, whether a container, a Kubernetes pod or a virtual machine. Before you pick node sizes, write down your peak concurrent shoppers, active SKUs, orders per hour, and every external system the store calls, such as payment gateways, ERP sync and shipping rate APIs. Those figures determine the capacity you need, and the minimums only mark the floor.

Stores still running PHP 7.4 or MySQL 5.6 need to plan a migration before they plan capacity. The WooCommerce requirements page notes that legacy environments may run PHP 7.4 or greater and MySQL 5.6 or greater, but both versions are end of life and pose security risks. The migration effort is often driven by the code around the runtime: themes, custom plugins, payment connectors and any database queries written against older behavior. Ask your developers to inventory each extension's supported PHP version and to confirm which ones have been tested with PHP 8.3 and WordPress 6.9. Budget the migration and its testing as a separate line from the Docker, Kubernetes or VM decision, since the move to a supported PHP and database version may cost more than the choice of runtime itself. Confirm the scope and cost in writing before work starts.

Run a load test on a staging copy of your own store before choosing node sizes. Restore a recent production database and media library into an environment that matches your planned platform, then replay checkout traffic at the peak rate you expect, including logged-in carts, coupon use and admin order exports. Watch PHP worker saturation, database connections, slow queries and response times for checkout and for the REST API calls your integrations make under the wc/v3 namespace. Confirm whether your orders sit in High-Performance Order Storage or in the legacy WordPress posts tables, because HPOS has been enabled by default only for new installations since WooCommerce 8.2 and the database load profile differs between the two. Run the same test on each candidate runtime so the results compare per-node capacity directly, and keep the results with the scope document so the node sizes can be defended in review.

What buyers ask before choosing a WooCommerce deployment model

Is Kubernetes required for high availability in WooCommerce?

No. High availability comes from removing single points of failure at every layer, and Kubernetes is one option among several. Several VMs behind a load balancer can meet the same goal when the database is replicated and uploaded files sit on shared storage. WooCommerce stores orders in the database, and from WooCommerce 8.2 High-Performance Order Storage is enabled by default for new installations, using dedicated order tables. So the database tier and shared file path usually decide whether a failover is clean. Plan for scheduled actions and cron jobs too, so two nodes do not run the same job at once. Ask any provider, DeployOpen included, to show which failure cases they tested and what recovery time they can commit to in writing.

What drives the cost of each deployment model and who gets paid for what?

WooCommerce itself is GPL-licensed and free to use, so the money goes to infrastructure, people and services. Paid themes and extensions carry their own licenses. Your cloud or data center provider bills for compute, storage, backups and network traffic, and that bill recurs. Engineering time is usually the largest variable: VMs need the least platform knowledge, Docker adds image and pipeline work, and Kubernetes adds cluster administration on top of both. Your own staff cost comes through payroll, and every model rises with traffic peaks, order volume and the number of environments you run. DeployOpen does not publish a price list, so ask for a written scope that splits one-time build work from recurring operations. DeployOpen is paid for a fixed-scope engagement covering planning, implementation, hardening and documentation, which is one-time work, and optional retainers cover upgrades and continuous testing, which recur.

How much effort does it take to run WooCommerce in-house?

Effort depends less on WooCommerce itself than on the stack around it. The WooCommerce server requirements recommend PHP 8.3 or greater, MySQL 8.0 or later or MariaDB 10.6 or later, WordPress 6.9 or greater, a WordPress memory limit of 256 MB or more and HTTPS. Each component needs patching and testing together, so your team owns every layer. Routine work includes WooCommerce and WordPress updates, extension testing against each release, checking order tables, and backup and restore tests. Most in-house teams need a web owner, a database owner and a release owner, and legacy PHP 7.4 or MySQL 5.6 installs are end of life and pose security risks. Ask a provider which of these tasks a retainer covers and which stay with your staff.

How long does a WooCommerce migration to containers or VMs take?

No duration is reliable until the scope is written, so treat any figure quoted without one as a guess. The timeline depends on the number of sites, the number of extensions and custom code, how much order and customer data must move, and whether the current host runs end-of-life PHP or MySQL. Payment, tax and shipping integrations add testing time, so name each one in the scope. Ask for the phases in writing: inventory, staging build, data copy, cutover rehearsal, cutover and a rollback window, with the handling of orders placed during the final sync. DeployOpen does not publish a price list. It agrees scope, deliverables and timelines in writing before work starts, so the quote follows from that written scope.

What does a deployment need from our internal team?

Expect to own decisions a provider cannot make for you: who owns order and customer data, who approves changes to payment, tax and shipping integrations, and who signs off the restore test. Engineers should supply the target environment, network rules, DNS and cloud account access, the extension list, and the identity source if staff sign in through single sign-on. Compliance leads should name the evidence they need, since DeployOpen prepares systems, controls and evidence for assessments but does not issue audit reports, attestations or certifications. The more operations stay in-house, the more runbooks, monitoring and on-call work your people carry from the first day. Write these responsibilities into the scope so the handover has named owners.

Can we start on VMs and move to Kubernetes later?

Yes, it is possible, but the move is a full migration project with its own testing and cutover. Design the VM build so the application is as stateless as practical: keep sessions and uploads off local disk, hold configuration in environment variables or managed files, and keep backups and the database outside the node. Those choices shrink the later container or cluster move, because the same images and data paths can be reused. Ask providers whether the backup and restore procedure works unchanged in both models, and whether the VM build is documented well enough to become a container image. A VM first path also limits early spending on cluster administration, which pays off only when your team needs that operating model.

How DeployOpen scopes and runs a WooCommerce deployment

DeployOpen plans, implements and supports self-hosted WooCommerce inside your own cloud accounts, data centers or air-gapped networks. The deployment model is agreed in the written scope, based on your team's operating skills, sizing and upgrade plans. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names the hosting model, environments and WordPress and WooCommerce versions covered.
  • Docker, Kubernetes and VM options are compared against your team's skills, sizing and upgrade cadence.
  • Deliverables and timelines are agreed in writing before work starts, and ongoing support is a separate retainer.

How we build

  • Self-hosted WooCommerce is installed inside your own cloud accounts, data centers or air-gapped networks.
  • Build covers the chosen runtime, database, PHP and WordPress settings, plus HTTPS and WooCommerce requirements.
  • Order storage, REST API access and high availability settings are configured and tested against your chosen model.

How we hand over

  • Runbooks document installation, upgrade steps, backup and restore procedures, and the rollback path for each environment.
  • Backup and restore are tested, with results recorded as evidence for your operations and compliance teams.
  • Access, admin and credential settings are documented so your team can review and run the stack after handover.

How we support

  • Upgrades follow the WordPress and WooCommerce release lines you choose to track, with a test pass before each change.
  • Retainers cover ongoing support, upgrades and continuous testing, and can be scoped to your Docker, Kubernetes or VM environment.
  • Security testing of the store, APIs and hosting can be added, followed by a retest of any fixes.

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.