|
|
@@ -11,8 +11,9 @@ As an application wiki, XWiki allows for the storing of structured data and the
|
|
|
# Introduction
|
|
|
|
|
|
The goal is to provide a production-ready XWiki system running in Docker. This is why:
|
|
|
+
|
|
|
- The OS is based on Debian and not on some smaller-footprint distribution like Alpine
|
|
|
-- Several containers are used with Docker Compose: one for the DB and another for XWiki + Servlet container. This allows the ability to run them on different machines for example.
|
|
|
+- Several containers are used with Docker Compose: one for the DB and another for XWiki + Servlet container. This allows the ability to run them on different machines for example.
|
|
|
|
|
|
# How to use this image
|
|
|
|
|
|
@@ -28,17 +29,18 @@ Then there are several options:
|
|
|
## Pulling existing image
|
|
|
|
|
|
You need to run 2 containers:
|
|
|
+
|
|
|
- One for the XWiki image
|
|
|
- One for the database image to which XWiki connects to
|
|
|
|
|
|
The simplest is to use the Docker Compose file we provide. Run the following steps:
|
|
|
+
|
|
|
- `wget https://raw.githubusercontent.com/xwiki-contrib/docker-xwiki/master/xwiki-mysql-tomcat/docker-compose-using.yml`
|
|
|
- If you're not using the `latest` tag then use the corresponding GitHub branch/tag. For example for the `8.x` branch: `wget https://raw.githubusercontent.com/xwiki-contrib/docker-xwiki/8.x/xwiki-mysql-tomcat/docker-compose-using.yml`
|
|
|
- You can edit the compose file retrieved to change the default username/password and other environment variables.
|
|
|
- `docker-compose up`
|
|
|
|
|
|
-For reference here's a minimal Docker Compose file using MySQL that you could use as an example (full example
|
|
|
-[here](https://github.com/xwiki-contrib/docker-xwiki/blob/master/xwiki-mysql-tomcat/docker-compose-using.yml)):
|
|
|
+For reference here's a minimal Docker Compose file using MySQL that you could use as an example (full example [here](https://github.com/xwiki-contrib/docker-xwiki/blob/master/xwiki-mysql-tomcat/docker-compose-using.yml)):
|
|
|
|
|
|
```yaml
|
|
|
version: '2'
|