Wiki source code of Docker Run for XWiki
Last modified by Vincent Massol on 2026/07/27 15:27
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | [[Docker Run>>https://docs.docker.com/reference/cli/docker/container/run/]] allows you to start containers manually by executing individual docker run commands. Instead of using a single Compose file (as [[Docker Compose>>doc:documentation.xs.admin.installation.methods.install-xwiki-docker.docker-compose.WebHome]]), you create the required containers yourself and define their configuration through command-line options. With this approach, you manage each component separately. | ||
| 2 | |||
| 3 | A standard XWiki setup requires: | ||
| 4 | |||
| 5 | * one container for XWiki | ||
| 6 | * one container for the database (MySQL, MariaDB, or PostgreSQL) | ||
| 7 | |||
| 8 | Both containers must be connected to the same [[Docker network>>https://docs.docker.com/engine/network/]] so that XWiki can reach the database. | ||
| 9 | |||
| 10 | To preserve data across container recreations, it is recommended to mount volumes or host directories for: | ||
| 11 | |||
| 12 | * the database data directory | ||
| 13 | * the XWiki permanent directory (##/usr/local/xwiki##) | ||
| 14 | |||
| 15 | With Docker Run, you can start XWiki with the following supported database configurations: | ||
| 16 | |||
| 17 | * [[Run XWiki (MySQL on Tomcat) Using Docker Run>>doc:documentation.xs.admin.installation.methods.install-xwiki-docker.docker-run.run-xwiki-mysql-tomcat.WebHome]] | ||
| 18 | * [[Run XWiki (MariaDB on Tomcat) Using Docker Run>>doc:documentation.xs.admin.installation.methods.install-xwiki-docker.docker-run.run-xwiki-mariadb-tomcat.WebHome]] | ||
| 19 | * [[Run XWiki (PostgreSQL on Tomcat) Using Docker Run>>doc:documentation.xs.admin.installation.methods.install-xwiki-docker.docker-run.run-xwiki-postgresql-tomcat.WebHome]] |