XWiki as a self-hosted wiki and Confluence alternative
XWiki is an open source Java wiki that works as a self-hosted knowledge base and as an alternative to Confluence Data Center. DeployOpen plans and deploys it in infrastructure you control, with Confluence migration, extensions, search and permissions planned together.
The platform is licensed under the LGPL 2.1. Its GitHub repository describes it as a generic wiki platform that provides runtime services for applications built on it. XWiki Commons, XWiki Rendering and XWiki Platform are released together and share one version.
Pages can hold structured data, scripts and macros. The extension manager adds applications such as blogs, diagrams, authenticators and structured apps built with App Within Minutes. That flexibility is why teams choose XWiki. It is also why a deployment needs rules about who may install extensions and write scripts.
Projects often start from one of two places. One is Atlassian's Data Center end of life, which includes Confluence Data Center. The other is a sovereign workplace program such as openDesk, where XWiki is the knowledge management component. Both lead to the same questions: where content lives, who can see it, and what happens to pages that relied on Confluence macros. The sections below cover the dates, the components, extension governance, a staged migration, identity, availability and ownership.
Confluence Data Center end of life dates for migration planning
Dates from Atlassian's Data Center end-of-life page. The same schedule applies to Jira Software, Jira Service Management and Crowd Data Center.
| Date | Change | What it means for a migration plan |
|---|---|---|
| March 30, 2026 | New customers can no longer buy Data Center subscriptions or new Marketplace Data Center apps. | This is already in effect. Existing customers can still buy subscriptions and expansions until the next date. |
| March 30, 2028 | Existing customers can no longer buy new subscriptions, expansions or Marketplace Data Center apps. | Adding users to Confluence Data Center stops being possible. Finish the macro inventory and the pilot well before this point. |
| March 28, 2029 | End of life for the affected Data Center products. | Have content moved, old links redirected and the previous instance archived before this date. |
| Applies to | The same schedule covers Jira Software, Jira Service Management and Crowd Data Center. | If those products share an identity setup or hosting plan with Confluence, plan their end of life together with the wiki move. |
| Before March 30, 2028 | Existing customers can still buy subscriptions, expansions and Marketplace Data Center apps. | Use this window for the inventory, macro mapping decisions and a pilot with real space owners, so cutover is not rushed against a purchase deadline. |
XWiki Docker, Tomcat, database and Solr components to plan
A standard XWiki installation is one Java web application with a database, a search index and a permanent directory.
Servlet container and Java
XWiki runs as a web application in a servlet container such as Tomcat. The 18.10.0 official image is based on tomcat:10-jre25, which is Apache Tomcat 10 on a Java 25 JRE. Recent releases target current Java and Tomcat versions, so check the installation guide for your release before a manual install. Pin the image tag so a rebuild does not change the runtime.
Database
PostgreSQL, MySQL and MariaDB each have an official image variant on Docker Hub, named postgres-tomcat, mysql-tomcat and mariadb-tomcat. The database holds pages, page history, users and rights. It sits at the center of every backup and restore test. Pick the variant that matches the database your team already operates.
Search
XWiki uses Solr for search and for internal indexes such as events. Solr runs embedded by default. A standalone Solr helps under heavy search load and is required for a cluster. In the official image, setting SOLR_BASE_URL makes the entrypoint write solr.type and solr.remote.baseURL, which switches XWiki to a remote Solr.
Permanent directory
The official image declares /usr/local/xwiki as a volume and sets the permanent directory to /usr/local/xwiki/data. It holds installed extensions, caches, embedded Solr data and, with file-based storage, attachments. Put it on persistent storage and back it up with the database. The data/tmp folder is wiped and recreated on every start, so keep nothing there.
Image configuration
The image reads DB_USER, DB_PASSWORD and DB_DATABASE (default xwiki), DB_HOST (default db) and CONTEXT_PATH (default ROOT). A _FILE suffix passes secrets from files, and the entrypoint exits if both forms are set. Values are written into hibernate.cfg.xml, xwiki.properties and xwiki.cfg on first start only, so plan secrets and settings before that start.
Kubernetes and Helm
The XWiki Helm chart aims to ease deployment in both local and highly available setups. It lists XWiki 8.4 as the minimal supported version. Treat it as one input to a Kubernetes design. The database, Solr, shared storage, the permanent directory and backups still need explicit decisions, as they do for any other install.
Govern XWiki extensions and scripting
XWiki pages can run Velocity and Groovy scripts. Script and programming rights decide who may author them, and programming rights give code broad access to the wiki and the server process. Keep programming rights to a small administrator group, review the pages that use them, and audit rights after every import.
The extension manager installs from extensions.xwiki.org by default. Decide who may install extensions, keep an approved list with versions and owners, and test each one against your LTS release. On an isolated network, plan how approved extensions and their dependencies reach the instance, because the extension manager cannot reach the public repository.
XWiki publishes security advisories. Subscribe to them, keep the instance on a current LTS patch release, and record which advisories you have reviewed.
Some extensions are commercial. The XWiki Pro package on the XWiki Store bundles XWiki SAS business extensions, including Active Directory, Microsoft Entra ID, OnlyOffice Connector, Antivirus Application, Forum, Calendar, Task Manager, Diagram and File Manager. It requires XWiki 15.10 or above. Licenses cover a 1 or 3 year term with free updates for one year and XWiki support. Global admins can install the apps farm-wide or on a single subwiki. Put any such package through the same approval step as a free extension.
Migrate Confluence to XWiki in stages
List spaces, owners, page counts, attachment volume, permission schemes and every macro in use, including Marketplace macros. Mark each space as active, archive or retire. Spaces with no owner and no recent edits are candidates for an archive export. The inventory sets the size of the pilot and the list of macros that need a decision, so finish it before choosing a tool. It also gives space owners a concrete list to confirm, so retired spaces are not migrated by default.
The xwiki-contrib Confluence project provides a free wiki importer and a syntax parser under LGPL 2.1. The free Confluence Migrator app on the XWiki Store uses a six step wizard with one profile per space, but XWiki no longer supports it and recommends the Confluence Migration Toolkit. The Toolkit from XWiki SAS migrates data, page history, users, permissions, attachments and metadata. It takes XML backups, or CSV in beta, and supports batch and parallel runs. It requires XWiki 15.10. Its trial is limited to 200 pages per migration and one space. Test the options on your own export.
Confluence macros without an XWiki equivalent arrive as placeholders or unrendered markup. For each one, replace it with an XWiki macro, use a compatibility macro, write a bridge macro or convert the content. Marketplace macros need their own decision, since their data may not be in the export. Record each mapping decision in the change record so later imports reuse it, and so owners can see why a page changed. The Toolkit license includes Confluence-compatible macros, which reduces how many bridge macros you write.
Import a few representative spaces and ask owners to check layout, attachments, links and permissions. Fix mappings and rerun. XWiki's Confluence URL mapping extension can redirect old page links, so test a sample of old links before cutover. Freeze edits for the final import, then set Confluence read-only and archive it. Keep the archive and the redirect list with the handover records. Keep the pilot spaces varied: one macro-heavy space, one attachment-heavy space and one with restricted permissions.
XWiki OpenID Connect, LDAP and rights
Rights in XWiki inherit from wiki to space to page. Keep the model shallow so it can be reviewed.
| Area | Approach | Check |
|---|---|---|
| Authentication | Use the OpenID Connect authenticator extension with your identity provider, or the LDAP authenticator for directory login. | A test user signs in through SSO and arrives with the expected groups. |
| Directory products | If you use Active Directory or Microsoft Entra ID, the XWiki Pro package lists connectors for both and requires XWiki 15.10 or above. Compare them with the free authenticators before buying. | The chosen connector appears on the approved extension list with its version and owner. |
| Groups | Map identity provider or directory groups to XWiki groups that hold rights. | Removing someone from a directory group removes their access at the next login or sync. |
| Rights model | Grant rights at wiki and space level and keep page-level exceptions rare. Review imported Confluence permissions after each import. | A non-member cannot reach a restricted space through search, links or the REST API. |
| Script rights | Give script and programming rights only to named administrators, and review the pages that use them after every import. | A regular editor cannot save a page that runs a script. |
| Guest access | Decide whether any space is public. For an internal wiki, deny guest view by default. | A browser without a session sees only the login page or the intended public spaces. |
Availability, backup and XWiki LTS upgrades
A single application node with a tested restore suits many teams. XWiki also documents a cluster mode: nodes share one database and one standalone Solr, exchange events over JGroups, and need shared storage for file-based attachments. It adds moving parts, so choose it for an availability or load requirement you can name.
The official compose files show the container layout. The PostgreSQL file runs the xwiki:${XWIKI_VERSION}-postgres-tomcat image, publishes port 8080 and mounts xwiki-data at /usr/local/xwiki and postgres-data at /var/lib/postgresql. It sets UTF8 initialization arguments and suggests pinning a major database version to control database upgrades. The MySQL file starts MySQL with utf8mb4, the utf8mb4_bin collation and explicit-defaults-for-timestamp=1. It mounts an init.sql that grants the permissions needed to create subwikis.
Back up the database, the permanent directory and configuration files (xwiki.cfg, xwiki.properties and the servlet container settings) at a consistent point. A restore test should open pages with attachments, find recent content through search and confirm that restricted spaces stay restricted.
XWiki recommends its cycle LTS release for production, with newer stable releases for teams that want features sooner, as described in its versioning and release practices. Plan upgrades from LTS to LTS, read the release notes for each step, and test extensions on a copy of production first. On Docker Hub, the latest and stable tags point to XWiki 18 with MySQL on Tomcat, and tags such as 18.10.0, 18.4.9, 17.10.15 and 16.10.19 are listed. The xwiki-docker README says older releases are generally not rebuilt, except for broken images or important bug fixes. Pin an exact tag.
XWiki operating ownership
The platform team runs XWiki. Space owners keep content current and decide who can see it. Splitting the work this way keeps rights reviews and platform changes with the people who can verify them.
Platform
- Monitor JVM memory, database health, Solr indexing and response time.
- Apply LTS patch releases and security fixes.
- Keep the permanent directory on persistent storage.
Space owners
- Review space membership on a fixed schedule.
- Archive spaces that no longer have an owner.
- Report pages with broken macros left from the migration.
Security
- Limit programming rights to named administrators.
- Approve extensions before installation.
- Review XWiki security advisories as they are published.
Change record
- Record extensions, versions and configuration changes.
- Keep the macro mapping decisions from the migration.
- Note the date and result of the last restore test.
XWiki Confluence migration, Docker and SSO questions
Is XWiki a Confluence alternative for Data Center end of life?
XWiki is open source under the LGPL 2.1 and can run in infrastructure you control. Atlassian stops new subscriptions for existing Data Center customers on March 30, 2028 and ends life for the affected products on March 28, 2029. Text, headings, tables and attachments move well. Marketplace macros and custom layouts need mapping, and a pilot shows how much rework your spaces need.
How do I migrate Confluence to XWiki?
Work in stages. Inventory spaces, owners, permissions and macros. Choose a tool. Map each macro to an XWiki macro, a compatibility macro, a bridge macro or converted content. Pilot a few representative spaces with their owners, fix mappings and rerun. Then freeze edits, run the final import, redirect old links with the Confluence URL mapping extension, and set Confluence read-only before archiving it.
Is the XWiki Confluence Migration Toolkit worth buying?
It can pay off for large estates. The Toolkit migrates data, page history, users, permissions, attachments and metadata, and supports batch and parallel runs. Its trial is limited to 200 pages per migration and one space. The free importer can be enough for estates with few custom macros. Run both on your own export during the pilot, then decide.
How do I run XWiki with Docker Compose?
Start from the official compose file for your database. The PostgreSQL file runs the xwiki:${XWIKI_VERSION}-postgres-tomcat image, publishes port 8080 and mounts volumes for /usr/local/xwiki and the database. Set secrets before the first start, because the entrypoint writes environment values into configuration files only then. Pin the XWiki and database versions, and include both volumes in backups.
Can I install XWiki on Tomcat with PostgreSQL?
Yes. XWiki is a web application in a servlet container, and PostgreSQL, MySQL and MariaDB each have an official image variant. The 18.10.0 postgres-tomcat image uses Apache Tomcat 10 on a Java 25 JRE and bundles the PostgreSQL JDBC driver 42.7.15. For a manual install, check the installation guide for the Java and Tomcat versions your release supports.
Is there an XWiki Helm chart for Kubernetes?
Yes. The xwiki-helm repository describes a chart that aims to ease deployment in both local and highly available setups, and it lists XWiki 8.4 as the minimal supported version. You still decide how the database, standalone Solr, shared storage and the permanent directory are provided and backed up. A cluster adds moving parts, so tie it to a named availability goal.
Which XWiki LTS release should I run?
XWiki recommends its cycle LTS release for production, with newer stable releases for teams that want features sooner. Choose a current LTS patch release, plan upgrades from LTS to LTS, read the release notes for each step and test extensions on a copy of production first. Pin an exact image tag rather than relying on latest.
How do I set up XWiki OpenID Connect SSO or LDAP login?
Install the OpenID Connect authenticator extension and connect it to your identity provider, or use the LDAP authenticator for directory login. Map provider or directory groups to XWiki groups that hold rights. Then test with a real user: sign in, confirm the expected groups, remove the user from a directory group and confirm access ends at the next login or sync.
Scope and handover
DeployOpen plans the topology, deploys XWiki in your infrastructure, integrates SSO, sets up search, backup and monitoring, and runs the Confluence migration pilot with your space owners.
The work changes with the number of spaces, attachment volume, macro inventory, rights complexity, extension set and availability target. A small estate with few custom macros differs from a large one with many Marketplace macros and several restricted spaces.
Handover records versions and the LTS upgrade path, database and Solr setup, the permanent directory location, SSO and group mapping, approved extensions, macro mapping decisions, backup and restore results, URL redirects from Confluence and the support route.
After handover, the platform team runs XWiki and space owners keep content current and decide who can see it. The records above give both groups a shared starting point for patching, rights reviews and the next LTS upgrade.
Sources and further reading
- XWiki platform license (LGPL-2.1) ↗
- XWiki versioning and release practices ↗
- XWiki Confluence tools (importer and URL mapping) ↗
- Atlassian Data Center end of life ↗
- XWiki Platform GitHub ↗
- xwiki-platform pom.xml ↗
- GitHub API xwiki-platform ↗
- Docker Hub xwiki ↗
- Docker Hub API xwiki ↗
- xwiki-docker README ↗
- xwiki-docker 18 mysql-tomcat Dockerfile ↗
- xwiki-docker 18 postgres-tomcat Dockerfile ↗
- xwiki-docker entrypoint ↗
- xwiki-docker 18 postgres-tomcat compose ↗
- xwiki-docker 18 mysql-tomcat compose ↗
- xwiki-helm README ↗

