Required Files for Docker Compose

Last modified by Eleni Cojocariu on 2026/06/15 17:54

Reference

To run XWiki with Docker Compose, you need three configuration files that are downloaded locally before starting the setup. These files are retrieved using commands from the tutorials (e.g., Run XWiki (MySQL on Tomcat) Using Docker Compose, Run XWiki (MariaDB on Tomcat) Using Docker Compose, Run XWiki (PostgreSQL on Tomcat) Using Docker Compose) such as wget or curl , and Docker Compose uses them to configure and start the containers.

Configuration FileDesctiption
init.sqlThis file contains some SQL executed when the database starts for the first time.
docker-compose.ymlThis is the main configuration file that defines the services (XWiki and the database), their settings, and how they interact.
.envThis file contains default configuration values (such as the XWiki version or database settings).

For reference, here's a init.sql (for MySQL) example:

grant all privileges on *.* to xwiki@'%'

For reference, here's a .env (for MySQL) example: 

# Default environment values
XWIKI_VERSION=17.10.4
DB_USER=xwiki
DB_PASSWORD=xwiki
DB_DATABASE=xwiki
MYSQL_ROOT_PASSWORD=xwiki

Related

Get Connected