Configuration Files in the XWiki Docker Image

Last modified by Vincent Massol on 2026/07/27 15:28

Reference

The following table lists the main XWiki configuration files available in the Docker image. To customize them, bind-mount the corresponding file or directory from the host machine to its path inside the container.

Configuration ItemPath inside the Docker ImageDescription
Permanent directory/usr/local/xwikiPersistent data.
xwiki.cfg$WEB-INF/xwiki.cfgMain XWiki configuration file.
xwiki.properties$WEB-INF/xwiki.propertiesAdvanced XWiki properties.
hibernate.cfg.xml$WEB-INF/hibernate.cfg.xmlHibernate database configuration.
Clustering (JGroups)$WEB-INF/observation/remote/jgroupsCluster communication configuration.
logback.xml$WEB-INF/classes/logback.xmlLogging configuration.
web.xml$WEB-INF/web.xmlWeb application deployment descriptor.

$WEB-INF is the location of the XWiki WAR's WEB-INF directory inside the container, at /usr/local/tomcat/webapps/$CONTEXT_PATH/WEB-INF/, where $CONTEXT_PATH is the Servlet context deployment name of the XWiki webapp, ROOT by default.

FAQ

Are configuration files still copied automatically to the permanent directory?

No. The image does not copy xwiki.cfg, xwiki.properties and hibernate.cfg.xml into the permanent directory on the first start. For backward compatibility, when those files are found in the permanent directory they are still copied to their location inside the container on every start.

Where are the XWiki logs?

XWiki logs to the container console, which you read with docker logs, and Tomcat writes its own logs inside the container, in /usr/local/tomcat/logs. See XWiki Logs in the Docker Image for every destination, how to read each one, and which of them survive the removal of the container.

More

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

Related

Get Connected