XWiki Docker Image Configuration

Last modified by Vincent Massol on 2026/11/25 21:45

Three levels of settings applied from outside the container, from environment variables to Tomcat's own files, so that no change needs a rebuild.

Explanation

The XWiki Docker image ships a complete XWiki installation running on Tomcat.

Configuration happens at three levels, from the simplest to the most invasive:

  • Environment variables passed to the container are the first level, and the only one most instances need. They cover the database connection, the servlet context path, the Solr endpoint, and JAVA_OPTS for JVM settings such as those used to debug XWiki remotely.
  • The configuration files cover everything the environment variables do not expose. They are written on the container's first start and then kept in the permanent directory, so your own changes survive later starts.
  • Tomcat's own configuration is the last resort, for connector settings and other servlet-container behaviour that the XWiki configuration does not reach.

Independently of the level, anything that has to outlive the container, namely the permanent directory and the database, belongs on a Docker volume or a bind mount. That is what makes an upgrade a matter of replacing the container while keeping the data.

More

To find more about the current topic, you can search, select an highlighted topic, or use the table below and filter the columns to narrow your choices.

Related

Get Connected