Dolibarr on Docker vs Kubernetes vs VMs

Dolibarr is a PHP application with a database and a document store, so the deployment model mainly changes who patches, backs up and recovers it. This page compares VMs, Docker and Kubernetes by operating effort and team fit.

On this page

Dolibarr on Docker vs Kubernetes vs VMs: which model fits your team

A VM or a single Docker host suits a team that runs one Dolibarr instance without a cluster. Kubernetes suits a team that already operates a cluster and has staff who run it every day. The main reason to choose a virtual machine is that it matches how a small IT group already works: the operating system, the PHP web server and the database are patched on a schedule, and backups are taken at the machine level. That holds when the sales, finance or HR team needs one instance, one database and a predictable maintenance window. A single Docker host gives you a repeatable container image for the same stack, which helps with rebuilds, but it still has one machine and one failure point, so the choice pays off only if you also test restores. Kubernetes brings scheduling, rolling updates and self-healing, and those matter only when your cluster staff already manage ingress, persistent storage and secrets.

The deciding questions are about data and people. First, where do the database and documents live? Dolibarr runs on MySQL 5.7.7 or newer, MariaDB 10.3 or newer, or PostgreSQL 9.1.0 or newer, and it keeps uploaded and generated documents on disk, so a container platform needs persistent volumes for the documents directory or a database service outside the cluster. Check the current requirements on the Dolibarr prerequisites page before you size anything. Second, who performs upgrades? Dolibarr 24.0.0 was released on August 20, 2026 and 24.0.1 on September 7, 2026, and an upgrade can touch the PHP code, the enabled modules and the database schema, so the team that owns the host must also own a tested rollback. Third, who carries the on-call load? A cluster you already run spreads that load across existing rotations, while a team that would become the only Kubernetes operator often finds a VM easier to hand over.

Cost follows the model you pick. A VM or single Docker host carries a small set of recurring items: the machine or cloud instance, the database server, backup storage and the staff time for patches and restore tests. A Kubernetes deployment adds the cluster itself, which you may already pay for, plus the engineering hours needed to keep ingress, storage and secrets working for Dolibarr. Ask any implementation partner to price each item separately in the written scope, and to name who performs upgrades, restore tests and monitoring after go-live. DeployOpen does not publish prices. A quote follows from the written scope, and the final choice of model follows from that scope too, reviewed with your infrastructure team and compliance owners before work starts.

Side by side: sizing, availability, upgrades and skills for each model

This table compares running Dolibarr on virtual machines, Docker and Kubernetes across database baseline, sizing, availability, upgrades, backup, monitoring, skills and cost drivers. Read each row across to see how much operating work moves from you to the platform, and how much you must design yourself. Kubernetes adds the most operating work, so choose it only if your team already runs clusters, and confirm high availability and cluster behavior in Dolibarr's documentation and your own test.

FactorVirtual machinesDockerKubernetes
Database baselineMySQL 5.7.7 or newer, MariaDB 10.3 or newer or PostgreSQL 9.1.0 or newer, with any PHP web serverSame baseline inside containers or on the hostSame baseline, with the database placed in or outside the cluster
Sizing inputsAbout 150 MB program files, 35 MB initial database, document storage, at least 1 GHz CPU for 30 or more usersSame app footprint as a VM, plus a volume for documents and limits set per containerRequests and limits per pod, a persistent volume for documents, database sized in its own service
High availabilitySingle host by default; failover, shared storage and database replication are your designRestart policies and host failover; confirm supported multi-instance setups in Dolibarr's documentationReplica count, probes and storage sharing are your design; confirm multi-replica support with Dolibarr and test failover
Upgrade pathIn-place upgrade of code and schema on the same host; snapshot and rehearse on a copy firstChange the image tag and restart, keeping the document volume and database; test on staging firstRoll a new image through a Deployment; schema changes need a planned job and a rollback test
Backup and restoreBack up files, the database and the documents directory from the host; rebuild one hostBack up the database and the document volume; a new image alone does not restore dataBack up persistent volumes and the database with cluster tooling; test restores in a separate namespace
MonitoringHost metrics, web server and PHP logs, database health from standard agentsContainer metrics and logs per service, plus host metrics and volume capacityPod health, resource use and volume capacity through your cluster stack; watch document growth
Skills neededLinux administration, web server and PHP tuning, database administrationContainer images, volumes, Compose or similar, plus Linux host careCluster operations, storage classes, ingress, secrets and manifests or Helm, plus the skills above
Cost driversHost count, OS patching and admin hours; recurring cost is mostly staff timeHost and registry costs, build pipeline and image maintenance; less host overhead per appControl plane, node pools, storage and cluster staff time; costs can outweigh benefits if the cluster serves only Dolibarr

Dolibarr on Docker, Kubernetes or a VM: what each layer adds

Dolibarr runs on a PHP-capable web server, a supported SQL database and a directory of uploaded documents, and each hosting layer decides where those three parts live. A virtual machine keeps them on hosts you manage directly, Docker packages them into containers, and Kubernetes adds scheduling, networking and storage objects on top. Each extra layer adds moving parts to confirm before go-live.

VM layout: one host or two

On a virtual machine, the web server, PHP, the Dolibarr files and the database sit on one host or are split across two. Dolibarr runs on Apache, Nginx, Lighttpd or IIS with PHP, and its prerequisites list MySQL 5.7.7 or newer, MariaDB 10.3 or newer, or PostgreSQL 9.1.0 or newer. A single host has fewer machines to patch but ties backups and upgrades to one machine. Confirm the PHP and database versions against the current Dolibarr release notes before you choose the operating system image.

Dolibarr prerequisites

Docker: containers and volumes

Dolibarr lists Docker as one of its hosting options on the documents need a volume side of the stack. One layout runs the web server and PHP in a container, with the database in its own container or on an external server. Uploaded documents must live in a mounted volume, because files written inside a container are not kept when that container is replaced. Confirm the official image, its tags and whether it supports your database version before designing around them.

Dolibarr website

Kubernetes: deployments, ingress and secrets

A Kubernetes layout maps Dolibarr onto Deployments for the web and PHP pods, a Service that routes traffic to them and an Ingress for external HTTP access. Persistent volumes hold the document directory, and Secrets carry database credentials so they stay out of container images. The database is often external and run by a separate team or service. Confirm whether an official Helm chart exists and what it supports before you adopt one, and confirm the image tags you pin.

Shared documents across replicas

Dolibarr keeps uploaded and generated documents on disk, so every replica serving the same instance must read the same same files on every replica. If each pod writes to its own local volume, an invoice uploaded through one replica will not appear through another. Options include shared storage that supports concurrent writes from several pods, or a single writer replica with a controlled failover. Confirm how your chosen storage handles concurrent writes, then test upload, download and deletion across replicas before you claim high availability.

Backup scope in each layer

In every layout, a complete backup covers three things: the database, the document directory and the Dolibarr configuration. On a VM these sit in known paths on one host. In Docker they sit in volumes and in the database container or external server, and in Kubernetes they sit in persistent volume claims and an external database. Confirm that your backup tool captures the volumes and the database, since the container image holds neither, and test a restore in a separate environment.

Decision path from team skills to deployment model

The diagram starts with whether the team wants managed hosting, since the Dolibarr website lists cloud providers and partners as SaaS routes. For self-hosted teams, the next check is whether they already run a Kubernetes cluster with staff who operate it. Those teams then ask whether they need more than one application replica, which points to Kubernetes. Other teams ask whether they standardize on containers, which points to a Docker host, and otherwise to a virtual machine. Confirm each hand-off against your own staff skills, your upgrade and backup process, and the operating effort the platform team expects to carry.

Route from team skills and staffing to a deployment model.

Upgrades, backups, monitoring and skills for each model

This table shows who performs each operations task on Docker, Kubernetes and virtual machines, and which skills each model needs. The Dolibarr GitHub releases page lists 24.0.0 (August 20, 2026) and 24.0.1 (September 7, 2026), and the 23.0 and 22.0 lines still received maintenance releases in 2026. Dolibarr is free open source software, so your team or implementation partner owns upgrades, restores and monitoring on every model.

TaskDockerKubernetesVirtual machines
Applying releasesYour team picks the target line, changes the image tag and runs the upgrade steps.Your platform team changes the image tag in manifests and runs the upgrade steps.Your admins replace the application files on the host and run the upgrade steps.
Module and custom code checksYour developers test custom modules and add-ons against the new image in staging.Your developers test custom modules and add-ons in a staging namespace before promotion.Your developers test custom modules and add-ons on a copy of the host before cutover.
Backup of database and documentsYour team backs up the database and the documents volume on a schedule.Your team backs up the database and the persistent volume that holds documents.Your team backs up the database and the document directory on the host.
Restore testingYour team restores into a separate container set, checks modules and documents, and measures recovery time.Your team restores into a separate namespace, checks modules and documents, and measures recovery time.Your team restores onto a second machine, checks modules and documents, and measures recovery time.
MonitoringYour team watches container health, PHP errors, logs and database health.Your platform team watches pod health, probes, logs and database health.Your admins watch host services, disk space, logs and database health.
Skills neededContainer, web server, PHP and database administration.Kubernetes, storage, PHP and database administration, plus manifest management.Linux, web server, PHP and database administration, plus host patching.

How sizing and the PHP stack shape the choice

Sizing decides how much capacity you need, and the deployment model decides how you add it later. The Dolibarr prerequisites page estimates about 150 MB for program files and 35 MB for an initial database, plus space for uploaded and generated documents, and recommends at least a 1 GHz CPU for 30 or more users. Use those figures as a starting estimate only. The drivers that move the numbers most are concurrent users, enabled modules, document volume and database engine. A team running CRM, stock and manufacturing with scanned purchase documents needs far more storage and database headroom than a team using invoicing alone, and 30 users can generate very different load depending on which screens they open all day. Because modules can be enabled one at a time, keep the module list in your sizing worksheet.

The deployment model decides how you add capacity, which is a separate question from how much you need. On a virtual machine you resize vCPU, memory and disk on one host, and the web server, PHP runtime and database share those resources, so find the bottleneck before buying hardware. Confirm the database engine against the prerequisite minimums: MySQL 5.7.7 or newer, MariaDB 10.3 or newer, or PostgreSQL 9.1.0 or newer. In Docker, you add a container host or raise per-container limits. In Kubernetes, you add nodes and scale replicas, but more replicas help only when the web tier is stateless. Before you scale out, check where uploaded documents and session data are written, because a second replica that cannot see the first one's document directory can cause errors that look intermittent.

Set load targets before you choose the model, then test them in your own environment. Write down the expected concurrent users at month-end close, the largest document batches, the modules in use and the database engine you will run, and measure response times and resource use under that load on each candidate. Dolibarr's documentation gives minimums and includes no benchmark for your workload, so a minimum is not a capacity plan. (Illustrative example: a 30-user team that adds manufacturing and bulk document imports may need a larger host than the minimum suggests, and only a test with your data will show the gap.) Ask any implementation partner to put the test plan, pass criteria and retest after tuning into the written scope. Running the same test on each platform keeps cost comparisons tied to the same load.

Which team fits Dolibarr on Docker, Kubernetes or VMs

A virtual machine fits a small IT team that runs one Dolibarr instance and has no container experience. The stack is a PHP web server, a database and the Dolibarr files, which most Linux administrators already operate. Dolibarr runs on MySQL, MariaDB or PostgreSQL, and the prerequisites page lists the minimum versions your operating system packages must meet. Upgrades and backups follow the procedures the team already uses for other services, so there is no new platform to learn during an incident.

  • Skills needed: Linux administration, a PHP web server such as Apache or Nginx, and day-to-day administration of the database you choose.
  • Right call when: One company instance serves one site, and the team already patches servers on a fixed schedule.
  • Wrong call when: You expect several instances for subsidiaries, test copies and production, because each one becomes a hand-built server that must be kept in step.
  • Watch item: Manually configured servers drift from their documentation over time. Keep the PHP, web server and database versions in a runbook and rehearse each upgrade on a copy first.

Before you commit, confirm that your operating system packages meet the version floors on the prerequisites page and that your backup tooling captures both the database and the documents folder.

How to choose and roll out a Dolibarr deployment model

This sequence takes a team from open questions to a Dolibarr deployment model it can run, upgrade and recover. Each step ends with a written record or a tested check, so the choice between Docker, Kubernetes and virtual machines rests on your workload and your team's skills, and your own security and operations owners can review it.

  1. Write requirements for users, modules, documents and recovery

    Record the number of named and concurrent users, the Dolibarr modules you plan to enable (for example, invoicing, stock and HR, as an illustrative set), the expected volume of uploaded and generated documents, and your recovery point and recovery time targets. Business owners and IT agree these figures together, and each target needs a named owner. Put the written requirements into the partner scope as the baseline for sizing, backup frequency and high availability. The step closes when the document is approved and the partner lists any assumptions it made where a figure is missing.

  2. Confirm database and PHP stack prerequisites

    Check your planned database and web stack against the prerequisites page. The page lists MySQL 5.7.7 or newer, MariaDB 10.3 or newer, and PostgreSQL 9.1.0 or newer, with Microsoft SQL Server support marked experimental, on any PHP web server such as Apache, Nginx, Lighttpd or IIS. Confirm the PHP version your chosen release line requires, and that your platform team supports it. The page also estimates about 150 MB for program files and 35 MB for an initial database, plus document storage. The step closes with a signed stack matrix that the partner scope says it will test.

  3. Pick the model from existing platforms and skills

    Compare Docker, Kubernetes and virtual machines against what your organization already runs. Docker fits teams that already operate container hosts and image pipelines, Kubernetes fits teams with a running cluster, persistent storage, ingress and on-call experience, and virtual machines fit teams that already patch and back up hosts with their existing tooling. If self-hosting is not a requirement, add the hosted option to the comparison, since Dolibarr can also run as SaaS through cloud providers and partners. Record the choice, the skills gap and who owns patching, backups and on-call. The step closes with a decision record that the platform lead and the security lead both sign.

  4. Rehearse an upgrade and restore on a copy

    Clone the instance, including its database and document directory, into a non-production environment built on the chosen model. Run the upgrade from your current release line to the target line, then restore a backup into a separate copy. Compare users, documents, module settings and scheduled jobs with the source to confirm the restore is complete. Log every manual step, every error and the time each step took, because that log shows the effort before production. The step closes when the business owner signs the rehearsal log with a pass or fail for each test.

  5. Agree runbooks and handover before go-live

    Write runbooks for deployment, upgrade, backup, restore, rollback and secret rotation on the chosen model, and assign an owner to each. Walk through them with the staff who will run Dolibarr after the project, so operating knowledge stays in your team. In the written scope, request the runbook set, a handover session, configuration kept in version control where the model supports it, and credentials held in your own secrets system. The step closes when your on-call engineer carries out one restore runbook without the implementer present and the handover checklist is signed.

  6. Set a review point for each release line

    Set a review each time a new Dolibarr release line appears, and track whether older lines still receive maintenance. The GitHub releases page lists 24.0.0 from August 20, 2026, 24.0.1 from September 7, 2026, and maintenance releases for 23.0 and 22.0 during 2026, so decide which line you run and when you leave an older one. Repeat the upgrade rehearsal on each candidate, and check any DoliStore add-ons you depend on for compatibility. Ask the partner to scope this review as a recurring task, with rehearsal evidence in writing. The step closes when each review has a named owner, a go or hold decision and a record of the test results.

What buyers ask before choosing a Dolibarr deployment model

Is Kubernetes required for high availability with Dolibarr?

We do not have verified information that Kubernetes is required for high availability with Dolibarr, so treat that as an open question. Confirm in the Dolibarr documentation which high availability patterns it supports and how it handles shared state: the database, uploaded documents, generated files and session handling across more than one application node. Load balancing, a clustered or replicated database and shared file storage are the parts to check, whichever orchestration layer you choose. If the documentation is silent on a pattern, have your architects test a node failure and a database failover in a non-production copy before you go live.

What does a self-run Dolibarr deployment ask of our staff?

Someone must own the web server, the database engine, the Dolibarr application and the backups, and that ownership stays with your team when you self-host. Plan for three kinds of work, which one person may cover in a small team:

  • Systems administration for the host, container runtime or hypervisor, including patching and monitoring.
  • Database administration for MySQL, MariaDB or PostgreSQL, including restore tests on a fixed schedule.
  • Application ownership for module choices, configuration, user roles and upgrades between Dolibarr releases.

Also name a person who can read PHP error logs and handle a failed upgrade at short notice. Confirm whether those skills exist in-house today before you choose a model, because they set the operating effort more than any license term does.

Can an in-house IT team run Dolibarr without an implementation partner?

Often yes, for a standard setup with a limited set of modules and a team that already runs PHP applications and SQL databases. The deciding factors are skills, spare capacity and how much customization you plan. Custom modules built with the Module Builder, DoliStore add-ons, integrations with payment or banking systems, and data migration from older systems add work that is hard to estimate in-house. An implementation partner such as DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades and documents self-hosted platforms inside your infrastructure, and most engagements are fixed-scope with the scope agreed in writing before work starts. Whether you hire a partner or not, ask for a written scope and a list of handover documents, and test a restore yourself.

Which Dolibarr deployment costs are one-time and which recur?

One-time costs cover planning, initial setup, data migration, module configuration, hardening and the first documentation set. Recurring costs cover the hosting or infrastructure bill, staff time for patching and monitoring, backup storage and restore testing, upgrades between Dolibarr releases, and any support retainer. Dolibarr is free open source software under the GPL, so the software license itself adds no recurring fee in a self-hosted model. In a SaaS model, DoliCloud prices per user, and according to its website the Basic plan is 14 euros per user per month and the Premium plan starts at 45 euros per month. Ask any provider to split its quote into one-time and recurring lines so you can compare the models on the same basis.

What drives deployment cost up or down for Docker, Kubernetes and VMs?

Team skills and the number of environments drive cost most in every model, and the infrastructure layer changes what you pay for. In each model:

  • Docker on a single host keeps the footprint small, and cost rises with the number of hosts, the document storage you run and the number of staging copies.
  • Kubernetes adds control plane operation, ingress, storage classes and monitoring, so cost rises with the platform skills you must hire or buy, even when the Dolibarr workload is modest.
  • Virtual machines are familiar to most infrastructure teams, but each VM carries its own operating system patching, and backups must keep the database and file store consistent with each other.

Sizing matters in all three. The Dolibarr prerequisites page recommends at least a 1 GHz CPU for 30 or more users, so confirm user count, document volume and growth in any quote.

How long does a Dolibarr rollout take, and what changes the timeline?

We cannot give a reliable duration for Dolibarr rollouts from verified data, so ask for a timeline tied to a written scope. The duration depends on a short list of drivers: the volume and cleanliness of data to migrate, the number of modules you enable, the number of custom modules and integrations, the number of environments (test, staging and production), security review and approval cycles, user acceptance testing, and how quickly your staff can make decisions. Each driver can move the schedule in either direction, so the scope document should name the owner of every decision and every dependency. Ask the provider to list the assumptions behind the timeline and what would change it.

When is a managed SaaS option like DoliCloud worth comparing?

Compare managed SaaS when your IT team has little capacity for hosting, when a provider under your contract can hold the data in an acceptable location, and when your user count is small enough that per-user pricing stays predictable. DoliCloud, which describes itself as the official Dolibarr preferred partner, offers a Basic plan at 14 euros per user per month and a Premium plan from 45 euros per month, each with a 30-day free trial, according to its website. Self-hosting becomes the stronger comparison when data residency rules, custom modules or placement inside your own network are requirements. Request a written quote from each option built on the same scope, and confirm data location, backup and exit terms directly with the provider.

How DeployOpen scopes Dolibarr deployments on Docker, Kubernetes or VMs

DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks, so the hosting model you choose is part of the written scope. For Dolibarr, that means fixing the runtime (Docker, Kubernetes or virtual machines) before any module, database or integration work starts. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins.

How we scope

  • The written scope names the runtime, Dolibarr version line and database engine before work starts.
  • Sizing covers user count, enabled modules, document storage growth and the CPU baseline for the team.
  • Fixed-scope engagements; ongoing upgrades, support and continuous testing are available as a retainer.

How we build

  • Docker deployments map the document directory and configuration to persistent volumes, with the database on a separate service.
  • Kubernetes builds cover manifests or Helm charts, storage classes for uploads, probes and secrets handling, tested in your cluster.
  • VM builds include the PHP web server, database, scheduled jobs for Dolibarr and host hardening.

How we hand over

  • Runbooks cover upgrade steps, backup and restore tests, and runtime-specific commands for each runtime.
  • Architecture notes list the hosting choice, sizing assumptions and the open items your team must confirm.
  • Handover includes a walkthrough with your platform and infrastructure staff on the chosen runtime.

How we support

  • Upgrades follow the Dolibarr release line you select, with the maintenance window and rollback steps agreed in the scope.
  • Retainers can add continuous testing of the Dolibarr application and its hosting layer after each upgrade.
  • Confirm recovery objectives, monitoring and log retention with your compliance team before go-live.

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.