2020-11-02 00:07:48 +00:00
|
|
|
# XWiki
|
|
|
|
|
|
|
|
- Quite close to Confluence
|
|
|
|
- UI looks a bit dated, but functional and configurable
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
- [Homepage](https://www.xwiki.org)
|
|
|
|
- [Github repo](https://github.com/xwiki)
|
|
|
|
- [Docker installation](https://github.com/xwiki-contrib/docker-xwiki/blob/master/README.md#using-docker-compose)
|
|
|
|
|
|
|
|
|
|
|
|
## Prerequisities
|
|
|
|
First run these:
|
|
|
|
```sh
|
2021-01-20 22:10:57 +00:00
|
|
|
wget https://raw.githubusercontent.com/xwiki-contrib/docker-xwiki/master/12/mysql-tomcat/mysql/xwiki.cnf
|
|
|
|
wget https://raw.githubusercontent.com/xwiki-contrib/docker-xwiki/master/12/mysql-tomcat/mysql/init.sql
|
2020-11-02 00:07:48 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## docker-compose.yml
|
|
|
|
```yml
|
2021-01-20 22:10:57 +00:00
|
|
|
---
|
2020-11-02 00:07:48 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2021-01-20 22:10:57 +00:00
|
|
|
db:
|
|
|
|
image: mysql:5.7
|
|
|
|
container_name: xwiki-db
|
|
|
|
volumes:
|
|
|
|
- ./xwiki.cnf:/etc/mysql/conf.d/xwiki.cnf
|
|
|
|
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
|
|
- ./db:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=xwiki
|
|
|
|
- MYSQL_USER=xwiki
|
|
|
|
- MYSQL_PASSWORD=xwiki
|
|
|
|
- MYSQL_DATABASE=xwiki
|
|
|
|
xwiki:
|
|
|
|
image: xwiki:lts-mysql-tomcat
|
|
|
|
container_name: xwiki
|
2020-11-02 00:07:48 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- "3123:8080"
|
|
|
|
environment:
|
|
|
|
- DB_USER=xwiki
|
|
|
|
- DB_PASSWORD=xwiki
|
|
|
|
- DB_HOST=xwiki-mysql-db
|
|
|
|
volumes:
|
|
|
|
- ./data:/usr/local/xwiki
|
|
|
|
```
|