Last modified by Eleni Cojocariu on 2026/11/25 14:43

Show last authors
1 To run XWiki on the [[official Jetty Docker image>>https://hub.docker.com/_/jetty]], as follows:
2
3 1. [[Download the XWiki WAR file>>xwiki:Download.WebHome]] for the version you need.
4 1. Extract the WAR file into a directory named ##xwiki##. This directory is referred to as ##XWIKI_HOME##.
5 1. [[Configure a relational database>>doc:documentation.xs.admin.installation.database.WebHome]]. If the database also runs in a Docker container, place both containers on the same Docker network and use its container or service name instead of ##localhost## in the connection URL.
6 1. Create a directory on your host machine to store XWiki's [[permanent data>>documentation.xs.admin.installation.directories.permanent-directory.WebHome]] (attachments, configurations, extensions). This directory is referred to as ##XWIKI_PERMDIR##.
7 1. (Optional) Open ##XWIKI_HOME/WEB-INF/xwiki.properties## and set the permanent directory path:(((
8 {{code language="none"}}
9 environment.permanentDirectory=/var/lib/jetty/xwiki-data
10 {{/code}}
11 )))If you skip this step, you can pass the path as a JVM system property when running the container (see next step).
12 1. Run the Jetty Docker container:(((
13 {{code language="none"}}
14 docker run -d \
15 -v /path/to/xwiki:/var/lib/jetty/webapps/xwiki \
16 -v /path/to/permdir:/var/lib/jetty/xwiki-data \
17 -p 8080:8080 \
18 -e JAVA_OPTIONS="-Dxwiki.data.dir=/var/lib/jetty/xwiki-data" \
19 jetty:12-jre17
20 {{/code}}
21 )))If you configured ##environment.permanentDirectory## in ##xwiki.properties## (step 4), you can omit the ##-e JAVA_OPTIONS## argument.
22 1. Open {{code language="none"}}http://localhost:8080/xwiki/bin/view/Main/{{/code}} in a browser. XWiki starts in the container and serves its Home page once the UI is installed.

Get Connected