xwiki:add
This commit is contained in:
parent
64368349b6
commit
63cc67825d
6
xwiki/docker-compose/.env
Normal file
6
xwiki/docker-compose/.env
Normal file
@ -0,0 +1,6 @@
|
||||
# Default environment values
|
||||
XWIKI_VERSION=16.7.1
|
||||
DB_USER=xwiki
|
||||
DB_PASSWORD=xwiki
|
||||
DB_DATABASE=xwiki
|
||||
MYSQL_ROOT_PASSWORD=xwiki
|
||||
40
xwiki/docker-compose/docker-compose.yaml
Normal file
40
xwiki/docker-compose/docker-compose.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
version: '2'
|
||||
networks:
|
||||
bridge:
|
||||
driver: bridge
|
||||
services:
|
||||
web:
|
||||
image: "xwiki:stable-mariadb-tomcat"
|
||||
container_name: xwiki-mariadb-tomcat-web
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- DB_USER=xwiki
|
||||
- DB_PASSWORD=xwiki
|
||||
- DB_HOST=xwiki-mariadb-db
|
||||
volumes:
|
||||
- xwiki-data:/usr/local/xwiki
|
||||
networks:
|
||||
- bridge
|
||||
db:
|
||||
image: "mariadb:11.4"
|
||||
container_name: xwiki-mariadb-db
|
||||
volumes:
|
||||
- mariadb-data:/var/lib/mysql
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=xwiki
|
||||
- MYSQL_USER=xwiki
|
||||
- MYSQL_PASSWORD=xwiki
|
||||
- MYSQL_DATABASE=xwiki
|
||||
command:
|
||||
- "--character-set-server=utf8mb4"
|
||||
- "--collation-server=utf8mb4_bin"
|
||||
- "--explicit-defaults-for-timestamp=1"
|
||||
networks:
|
||||
- bridge
|
||||
volumes:
|
||||
mariadb-data: {}
|
||||
xwiki-data: {}
|
||||
1
xwiki/docker-compose/init.sql
Normal file
1
xwiki/docker-compose/init.sql
Normal file
@ -0,0 +1 @@
|
||||
grant all privileges on *.* to xwiki@'%'
|
||||
Loading…
Reference in New Issue
Block a user