XWiki on Docker vs Kubernetes vs VMs

Docker on a single host or VM suits a small team with an existing database and simple operations. Kubernetes suits a team that already runs a cluster and needs high availability, while VMs suit teams with traditional patching and change control. Upgrades, backups and database design decide most of the operating effort.

On this page

Which XWiki deployment model fits your team: Docker, Kubernetes or VMs

For a regulated organization that must host XWiki itself, pick the model by the team that will run it after launch. Docker suits a small team that already has a database service it can back up and only light operations capacity. Kubernetes suits a team that already runs a cluster with monitoring and needs high availability badly enough to design for it. Virtual machines suit a team that wants XWiki to follow standard patching and change control, like its other internal servers. All three run the same official application, so the decision turns on operating effort, availability design and who carries upgrades.

Official XWiki images come in MySQL, PostgreSQL and MariaDB variants, each running on Tomcat, for amd64 and arm64v8, and they are maintained by the XWiki Core Dev Team (XWiki Docker image documentation). The current tags are 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS line. Choose the line your change board will accept before you pick a model, because it sets how often you upgrade. Upgrade ownership differs by model: in Docker and Kubernetes your team pulls new image tags and runs the change through its own pipeline, while on VMs the upgrade path depends on how the application was installed. Confirm that path in your environment and ask any implementation partner to rehearse an upgrade on a staging copy first.

Moving between models later mostly means moving three things: the database, the attachments and the configuration. Plan the storage layout from the start. Keep the database on a service that outlives any container or VM, put attachments on storage you can snapshot and restore on its own schedule, and keep configuration outside the image so a rebuild does not change it. Before designing high availability, confirm in XWiki's installation documentation which directories must persist and whether more than one application instance can share one database and one attachment store. Those answers decide whether a Kubernetes or Docker design is genuinely highly available or only restarts on failure.

XWiki on Docker, Kubernetes and VMs side by side

This table compares running XWiki as a single Docker container, as workloads on Kubernetes and as a manual install on virtual machines. Read each row as the work your team takes on, from packaging and sizing through backups and switching later. The main takeaway: the official images give Docker and Kubernetes a packaged starting point, but high availability depends on shared database, session and search design that you must confirm for your setup.

FactorDockerKubernetesVirtual machines
PackagingOfficial XWiki image with MySQL, PostgreSQL or MariaDB variants on Tomcat, for amd64 and arm64v8.Same official image deployed through your own manifests. Confirm whether an official Helm chart or operator exists.Manual install on Tomcat with your chosen database. Confirm the supported install steps for your version.
Who owns the runtimeYour team owns the Docker host, container runtime, image pulls and restarts.Your platform team owns the cluster, and your team owns the XWiki workload and its configuration.Your team owns the OS, Tomcat, Java runtime, patching and the database.
Sizing controlSet CPU and memory limits per container on a host you size yourself.Requests, limits and any autoscaling are set per workload. Confirm JVM heap behavior under those limits.Fixed vCPU and memory per VM, with direct control of JVM and Tomcat settings.
High availability designA single host is a single point of failure unless you add a second host and a shared database.Multiple replicas behind a load balancer. Confirm how sessions and search indexes behave across instances.Two or more VMs behind a load balancer with a shared database. Confirm session and search handling with XWiki.
Upgrade pathMove to a new image tag, such as the stable, LTS or intermediate LTS tag, then restart. Test migrations first.Roll new image tags through a staged rollout. Confirm migration steps and rollback before cutover.Upgrade the application in place on each VM, with a snapshot taken first. Confirm the supported path.
Backup approachBack up the database and the attachment storage volume, then test a restore. Confirm the procedure with XWiki.Back up the database and persistent volumes, using cluster tooling if you run it. Confirm the procedure and restore test.Snapshot or dump the database and application data on each VM. Confirm the procedure and restore test.
MonitoringContainer logs, host metrics and Tomcat metrics that you collect yourself.Cluster and pod metrics plus Tomcat and XWiki metrics. Expect more components to run and maintain.Host agents, Tomcat metrics and database monitoring on each VM.
Skills neededContainer basics, Tomcat tuning and database administration.Kubernetes operations, storage classes, Tomcat tuning and database administration.Linux administration, Tomcat and Java tuning, patching and database administration.
Cost of switching laterModerate. Images and volumes move well, but host-level configuration must be rebuilt.Higher to leave, since manifests, cluster tooling and storage classes are tied to the platform.Moving to containers means repackaging configuration and data paths. Plan a cutover window.

What runs in each XWiki deployment model

Every XWiki deployment, whether on Docker, Kubernetes or virtual machines, runs the same stack: the application container, a database, a reverse proxy, attachment and search storage, and a host layer. The model changes who owns each piece and which pieces your team shares with other services. Use these cards to map ownership before you size hosts or write a runbook.

XWiki application container

The official XWiki image runs the application on Tomcat and is published for amd64 and arm64v8, maintained by the XWiki Core Dev Team. Whichever model you choose, the application is the same official image, so the model changes how the container is started, restarted and replaced. Your team owns the image tag and the upgrade path across the stable, LTS and intermediate LTS lines. Pin an explicit tag and confirm which line you intend to stay on.

Docker image docs

Database tier and image variant

Official XWiki images come in MySQL, PostgreSQL and MariaDB variants, so the database engine is fixed when you pick the image. The database itself can run as a separate container on a Docker host, as a StatefulSet or external service in Kubernetes, or as a package on a VM. Databases are often shared with other applications, so agree who patches and backs up the database before go-live. Confirm with your DBA which engine and version your standards allow.

Reverse proxy and TLS termination

XWiki is reached through a reverse proxy, which usually terminates TLS and sets the public hostname that XWiki uses in links and redirects. On Docker this is often a separate container on the same host, in Kubernetes an ingress controller, and on VMs a standalone proxy service. Forwarded headers and base URL settings must match what the proxy sends, so confirm them against the XWiki installation documentation for your version. Ask the platform team who renews certificates and owns access logs, since shared ingress is common.

Attachment and search storage

Attachments and the search index are state that must survive container restarts and node replacement, so each model needs persistent storage for them. On a single Docker host this is a volume on local disk, in Kubernetes a PersistentVolumeClaim, and on VMs a directory on the guest disk. Those volumes often sit on storage managed by another team, so confirm who sizes them and who restores them. Test a restore of attachments and the index before you treat the setup as recoverable.

Host layer and failure domain

The host layer is a single Docker host, a set of Kubernetes cluster nodes or a group of VM guests, and it sets your failure domain and maintenance pattern. One Docker host is a single failure domain, while a cluster or VM group lets you spread instances across hosts, if your XWiki version and shared database allow more than one instance. Hosts are usually shared with other services, so confirm who patches the operating system and who owns capacity before you size anything. Run a load test on your own content to set sizes.

Why high availability depends on the database and shared storage

Running two or more XWiki instances only improves availability when every instance uses the same same database, attachment store and search data. The official XWiki Docker images come in MySQL, PostgreSQL and MariaDB variants, each running on Tomcat, but choosing an image does not make the database redundant. If all instances point at one database server with no replica or failover, an outage on that server takes the wiki down regardless of how many containers or virtual machines are running. Before sizing the cluster, list each piece of state the wiki writes to: the database, attachment storage, the search index and any session data. For each one, decide who owns its availability and how it is shared between instances.

Kubernetes restarts failed pods and can spread replicas across nodes, so it protects against instance and node failure. It does not make a single database highly available, and it does not make attachments or search data shared on its own. A virtual machine setup behind a load balancer has the same limit: the balancer stops sending traffic to an unhealthy instance, but every instance still depends on the same database and storage. The practical question for either platform is whether the database has its own failover, provided by a managed database service, a DBA team or a clustering tool, and whether the team has tested that failover before relying on it. Treat the database design as a separate project from the wiki deployment, with its own owner, recovery goals and test schedule.

Before committing to several instances, confirm the details in XWiki's installation documentation. Check which database variants are supported with more than one instance, how attachments and the search index are stored and whether every instance can read the same data, and whether user sessions need sticky sessions at the load balancer or can be served by any instance. Also confirm how rolling upgrades behave when instances briefly run different versions, since the stable line (18.8.0), the LTS line (17.10.14) and the intermediate LTS line (18.4.7) each carry their own tags. Then run a test: stop one instance, fail over the database, restore a backup into a second environment, and record what users see at each step.

Which team should pick Docker, Kubernetes or VMs

Illustrative scenario: a four-person IT team runs a few Docker hosts for internal tools. It already writes Compose files, pulls images and restarts containers during maintenance windows. This team can run XWiki on Docker with limited new tooling, as long as the database and the XWiki data volume are handled deliberately. The official XWiki image documentation describes the variants the team will need to choose between.

  • Skills already in place: Compose files, volume mounts, container logs and restart policies carry over directly to an XWiki stack.
  • What to add: A tested backup routine for the database and the XWiki data volume, plus a written upgrade runbook for the release line you choose.
  • Database variant: Official images come in MySQL, PostgreSQL and MariaDB variants, each on Tomcat. Pick the variant that matches the database your team already operates before the first deployment.
  • Release line: The published tags include stable 18.8.0, intermediate LTS 18.4.7 and LTS 17.10.14. Choose the line that matches how often your team can realistically upgrade, and confirm its support window with XWiki.
  • Wrong fit: If the wiki must survive a host failure without manual steps, a single Docker host is the wrong model, because high availability needs a design beyond one host.

Confirm your backup restore procedure on a separate host before you rely on the containers in production.

Upgrades and backups for XWiki on Docker, Kubernetes and VMs

This table compares the upgrade, backup, patching, monitoring and rollback work for XWiki on Docker, Kubernetes and virtual machines, and who on the team owns each task. Read each row as work your team will carry, then check the owner column against the people you have. The main takeaway is that changing the image tag is often the smaller job; the database, attachments and rollback path usually decide the effort, and backup and rollback tooling must be confirmed in your own environment.

TaskDockerKubernetesVirtual machines
Release line choicePin one official tag: 18.8.0 (stable), 17.10.14 (LTS) or 18.4.7 (intermediate LTS), as available at research time.Pin the chosen tag in manifests or Helm values. Set the line per environment and confirm current tags before rollout.Install the chosen release build on each host. Record the line and version in the runbook before you start.
Pulling and testing a new tagPull the new tag into a staging stack, run it against a copy of the database, then promote the same tag.Roll the new tag through a staging namespace first, then a rolling update. Confirm readiness before traffic moves.Stage a second VM or a snapshot, apply the new build, test, then switch traffic. Schema changes run against the backed-up database.
Database and attachment backupsBack up the database and the volumes holding attachments on the host. Backup tooling must be confirmed in your environment.Back up the database and the persistent volumes for attachments. Confirm operator or managed-service options and test restores.Run database dumps and file-level copies of the attachment directory from the host. Confirm schedule and tooling locally.
Host or node patchingYour team patches the Docker host and engine. Restart containers in a planned maintenance window.Cordon and drain nodes before patching. Disruption budgets help keep XWiki pods available during drains.Patch the guest OS, Java runtime and Tomcat on each VM. Each host needs its own maintenance window.
MonitoringContainer health, restarts and logs from the Docker host. Confirm your metrics and alerting stack covers XWiki and the database.Pod restarts, probes and node metrics. Confirm dashboards cover the XWiki application, Tomcat and the database.Host and Tomcat metrics through existing agents. Confirm that XWiki application logs ship to your log platform.
RollbackPoint the stack back to the previous tag. If a migration ran, restore the database backup first.Roll back the Deployment revision. If a migration ran, restore the database. Rehearse this in staging.Restore the VM snapshot or previous install, then the database. Confirm snapshot tooling and restore steps before cutover.
Who on the team owns itPlatform or app team owns compose files, image pins and host patching. Database owners own backups and restores.Platform team owns the cluster, node patching and storage. App team owns XWiki configuration and tag promotion.Infrastructure team owns OS patching and backups. Wiki administrators own Tomcat and application upgrades.

What drives the cost of running XWiki yourself

Running XWiki yourself costs more in people and infrastructure than in licenses, because XWiki Standard is free under the LGPL 2.1. Infrastructure covers compute for the Tomcat container or VM, a PostgreSQL, MySQL or MariaDB database, attachment storage and a load balancer once you run more than one node. Staff time covers platform engineers who build and patch the image or VM, database administrators who own backup and restore, and a security reviewer who checks authentication and admin settings before go-live. Split the spend into one-time work (installation, hardening, migration from Confluence or another wiki) and recurring work (hosting, patching, upgrade testing, backups and on-call). Kubernetes moves more of the recurring effort into cluster operations, while a VM keeps it closer to the people who patch the operating system.

If you buy XWiki Pro or a support plan, the subscription becomes a second recurring line. XWiki SAS states that cloud and on-premises Pro pricing is the same, so hosting choice leaves the license price unchanged, while user count sets the tier. Starter is offered only on XWiki Cloud, so a self-hosted team should compare Basic (up to 1,000 users), Business (up to 10,000) and Enterprise (unlimited users), and confirm tier availability for self-hosting. Outside help is priced by the day. XWiki SAS lists consulting at 1200 EUR per day, which requires a Business or Enterprise support plan, and training at 1500 EUR per day, per its pricing page. Compare those day rates with the staff hours you would otherwise spend on the same work.

Ask for a written scope that names each deployment target (Docker, Kubernetes or VMs) and each environment, such as test, staging and production, because every environment adds recurring hosting, patching and upgrade work. Ask which release line the quote assumes. XWiki's current lines are 18.8.0 (stable), 18.4.7 (intermediate LTS) and 17.10.14 (LTS), and each follows a different upgrade schedule, so the cadence in the quote should match the line you run. Require a backup restore test as a named deliverable, with the database and attachments restored into a separate environment and the result recorded. Finally, ask for a handover that covers runbooks, credential ownership and who is on call after go-live. Confirm each item in writing before work starts, since a quote is only comparable when its scope is.

How to choose and pin an XWiki release line before deploying

This sequence sets which XWiki branch runs in your Docker, Kubernetes or VM deployment and makes that choice reproducible. It ends with a pinned image tag, a tested upgrade path and a rollback plan that the team can run without guessing.

  1. Choose a stable or LTS release line

    The platform lead and the wiki owner decide whether the wiki follows the stable line or an LTS line. At research time the official Docker image tags were 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS, so the choice is between the newest release and a branch with a longer support commitment. Write the decision down with its reason, such as extension compatibility or how much upgrade work the team can absorb. The step is done when the chosen branch is named in the change record and the wiki owner has signed off.

  2. Read release notes for the chosen branch

    The platform engineer opens the xwiki-platform release notes for the exact version on the chosen branch and records what they say about support, security fixes and breaking changes. Take support details from the notes themselves, not from memory or a forum thread. Note any platform requirements or extension compatibility points that affect your database variant and hosting model. The step is done when the notes, with their publication date, sit next to the decision record and every open question has a named owner.

  3. Confirm the status of 16.10.19

    Before anyone selects the 16.10.19 branch, the platform lead checks its current status in the XWiki release notes and project announcements. That branch had a release on October 2, 2026 at research time, but a published release alone does not show whether it still receives fixes for your use. If the status is not clear in writing, ask XWiki directly and do not start a new instance on that branch until the answer is recorded. The step is done when the status and its source are written down and the owner marks the branch as approved or excluded.

  4. Pin an explicit version tag

    The deployment engineer writes the exact image tag into the Docker Compose file, Kubernetes manifest or VM package definition, and removes any floating tag such as latest. Choose the tag that matches the database variant you run (MySQL, PostgreSQL or MariaDB), and confirm the exact tag name in the official image library file before merging. Keep the tag in version control alongside database and storage settings so each change is reviewed together. The step is done when a search of the deployment repository finds one XWiki version per environment and staging and production match.

  5. Test the upgrade on a database copy

    The platform lead restores a recent backup of the wiki database into a staging copy and starts the new pinned tag against it, using the same Docker, Kubernetes or VM setup as production. The tester signs in through the configured identity provider, opens pages with attachments, checks page history and exercises each installed extension. Any schema or configuration change that the upgrade triggers goes into the test log. The step is done when the log shows a clean startup, all checks pass and the team agrees on the production change window.

  6. Define rollback and schedule upgrades

    The platform lead writes a rollback runbook that keeps the previous image tag, a database snapshot taken before the upgrade and the restore steps, and names the people allowed to run them. The team then sets a review date for each upgrade and a trigger to revisit the release line whenever the team's needs change, such as moving from an LTS branch to the stable line. The step is done when someone other than the author has rehearsed the rollback on staging and the upgrade calendar lists an owner for each review.

What buyers ask before choosing a deployment model

How much operating effort does each XWiki deployment model take?

Effort depends less on the first install than on the recurring work: patching, moving between release lines, testing restores and keeping the database available. On virtual machines, your team owns the operating system, Tomcat, the database and the XWiki package, so there are more layers to patch but each one is familiar. On Docker, the official image bundles XWiki on Tomcat, but your team still owns the host, volumes, database, reverse proxy and the image update process. On Kubernetes, you also own the cluster, manifests or charts, storage, ingress and rolling upgrades, which pays off mainly when your organization already runs and staffs clusters. XWiki publishes stable and LTS lines, so the line you choose also sets how often upgrades arrive. Ask for the expected recurring work per month for your chosen model and release line, written out task by task.

Can an internal team run XWiki on Docker or Kubernetes without outside help?

Yes, if the team already operates containers and databases and has people who can own upgrades and restores. The official XWiki images are maintained by the XWiki Core Dev Team and published for amd64 and arm64v8, which removes packaging work, but the surrounding system still needs an owner. Gaps usually appear in first-time hardening, SSO and access control configuration, a tested backup and restore routine, and the runbook for moving between release lines. A team that has done these once on a similar stack can often continue alone. A team building its first XWiki platform in a regulated setting may prefer an outside design review before go-live, followed by a handover the internal staff can run without the partner. DeployOpen plans, implements, hardens and documents self-hosted platforms in your own infrastructure, and it offers ongoing support as a retainer. Confirm in writing which tasks your team will run after handover.

What skills and access does a self-hosted XWiki deployment require?

The work needs Linux administration, container or Kubernetes skills depending on the model, database administration for the engine you choose, and enough Java application server knowledge to read Tomcat logs and size memory. For security, the team needs identity administration for SSO, certificate management and a secure place to store secrets. Access is the part buyers most often underestimate. The installer needs administrative rights on the host or cluster, the database account needs rights to change schema during upgrades, and backups need read access to volumes and the database. Keep these as separate, documented roles and review them at each upgrade. Ask whether the plan gives your security team read access to configuration, audit logs and the deployment repository so they can check the setup themselves.

How long does it take to set up XWiki on your own servers?

Setup time is set by the written scope, so ask for that scope before you plan a date. The main drivers are the number of environments (test, staging and production), the target infrastructure (cloud accounts, a data center or an air-gapped network), the database choice, the number of identity integrations, whether content migration is included, and how much hardening and documentation your security team requires. A plain install on an existing platform with one identity source is a small, bounded task. High availability design, migration from another wiki, or evidence for a compliance review extends the work. DeployOpen runs most engagements as fixed scope, with scope, deliverables and timelines agreed in writing before work starts. Ask each provider for the milestones, the acceptance test for each one, and the steps that depend on your team, such as access approvals.

Should a small team choose Docker or Kubernetes for XWiki?

For most small teams, Docker on one well-managed host, or a pair of hosts with a tested restore procedure, is the simpler choice, unless the organization already runs Kubernetes with people trained to operate it. Kubernetes adds a control plane, networking, storage classes and an upgrade cadence that all need an owner, and that overhead stays even when XWiki is one application. Docker keeps the number of moving parts closer to what a small team can patch and restore. The trade-off is that high availability and rolling upgrades need more design work on plain Docker, so decide early whether the business needs them. If your team already runs a cluster for other services, deploying XWiki there is reasonable, provided the database, backups and ingress follow the same standards as the rest of the platform. Confirm this choice against your own staffing before you commit.

Is XWiki Cloud from XWiki SAS a fair alternative to self-hosting?

Yes, for some teams it is a fair option because it removes most infrastructure work. XWiki SAS states that its XWiki Cloud hosting runs on ISO 27001 certified infrastructure, and it also offers on-premises support, installation help and training. The choice changes who handles upgrades and backups: with XWiki Cloud, XWiki SAS operates the service, while on your own servers your team or implementation partner does. Ask XWiki SAS for the certificate scope, the hosting location, written backup and restore terms, the upgrade policy, and the limits on customization and direct access. Self-hosting gives you control over data location, network placement and upgrade timing, but it moves those responsibilities onto you. If data residency, air-gapped operation or deep customization is a requirement, self-hosting is usually the better fit. XWiki SAS states that cloud and on-premises pricing is the same, so compare operations, control and support terms.

What should a quote for an XWiki deployment include?

A usable quote states the written scope, the deliverables and who performs each one, so you can compare offers on the same basis. Ask for these items explicitly:

  • The target environment (your cloud accounts, a data center or an air-gapped network) and the chosen model (Docker, Kubernetes or virtual machines).
  • The database variant, identity integration, and backup and restore testing.
  • The release line to be deployed and what the upgrade path covers.
  • Hardening, documentation, handover sessions and acceptance criteria.
  • One-time work (design, implementation, migration) separated from recurring work (support, upgrades, continuous testing on a retainer).

DeployOpen agrees scope, deliverables and timelines in writing before work starts and does not publish a price list, so its quote follows from that scope. Costs rise with more environments, integrations and migration work, and they fall when requirements are fixed before work begins. If you also buy XWiki SAS support or Pro applications, list those as separate lines, since XWiki SAS prices them.

How DeployOpen works on this

DeployOpen plans, implements and runs XWiki inside your own infrastructure, whether on Docker, Kubernetes or virtual machines. We start from the written scope, agree the deployment target and database variant, and hand over documented, backed-up systems your team can operate. Engagements are fixed-scope, with ongoing support available as a retainer.

How we scope

  • The written scope names the target platform, Docker, Kubernetes or virtual machines, and who runs each upgrade and backup.
  • We confirm the XWiki database variant (MySQL, PostgreSQL or MariaDB) and the image line: stable, LTS or intermediate LTS.
  • Identity needs, such as OpenID Connect or Active Directory SSO, are mapped to a specific extension or Pro app.

How we build

  • We deploy XWiki from official Docker images, configured for Tomcat, your database and reverse proxy.
  • We configure SSO and test page and space permissions against the rights model your teams need.
  • Security testing covers the XWiki application, exposed endpoints and hosting layer, if the written scope includes it.

How we hand over

  • Documentation covers the target, image tag in use, upgrade steps and restore procedure your team will run.
  • Backup and restore are tested before handover, and the test results go into the handover pack.
  • Runbooks and the written scope are the reference for any later handover to an internal team or another provider.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the build.
  • Upgrades follow the line you chose, since stable, LTS and intermediate LTS lines are maintained in parallel.
  • A quote follows from the written scope, and DeployOpen does not publish a price list.

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.