Last modified by superadmin on 2026/11/25 21:30

Show last authors
1 1. [[Download the XWiki WAR file>>xwiki:Download.WebHome]] for the version you need.
2 1. Extract the WAR file into a directory named ##xwiki##. This directory is referred to as ##XWIKI_HOME##.
3 1. [[Configure a relational database>>doc:documentation.xs.admin.installation.install-relational-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.
4 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##.
5 1. (Optional) Open ##XWIKI_HOME/WEB-INF/xwiki.properties## and set the permanent directory path:(((
6 {{code language="none"}}
7 environment.permanentDirectory=/var/lib/jetty/xwiki-data
8 {{/code}}
9 )))If you skip this step, you can pass the path as a JVM system property when running the container (see next step).
10 1. Run a container from the [[official Jetty Docker image>>https://hub.docker.com/_/jetty]]:(((
11 {{code language="none"}}
12 docker run -d \
13 -v /path/to/xwiki:/var/lib/jetty/webapps/xwiki \
14 -v /path/to/permdir:/var/lib/jetty/xwiki-data \
15 -p 8080:8080 \
16 -e JAVA_OPTIONS="-Dxwiki.data.dir=/var/lib/jetty/xwiki-data" \
17 jetty:12-jre17
18 {{/code}}
19 )))If you configured ##environment.permanentDirectory## in ##xwiki.properties## (step 4), you can omit the ##-e JAVA_OPTIONS## argument.
20 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