I have successfully installed xwiki in a docker container and spent a lot of time building pages. I must say xwiki is by far and away the best wiki setup I have tried.
My problem is that whilst the extension directory appears on the host it has no files. Obviously there are files in the container.
Why is this a problem ? I backup the wiki_data directory, so I am not backing up a full xwiki configuration.
Also I cannot (easily) manually add extensions as I have no access to the folder system.
Here is my docker compose file:
services:
xwiki:
restart: unless-stopped
image: xwiki:stable-mariadb-tomcat
container_name: xwiki
depends_on:
- db
ports:
- 8080:8080
env_file:
- .env
volumes:
- /home/me/configs/xwiki/xwiki_data:/usr/local/xwiki
networks:
- me_Homehub_internal
db:
restart: unless-stopped
image: mariadb:11.3
container_name: xwiki-mariadb-db
volumes:
- /home/me/configs/xwiki/maria_data:/var/lib/mysql
- /home/me/configs/xwiki/maria_init/init.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- .env
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_bin
- --explicit-defaults-for-timestamp=1
networks:
- me_Homehub_internal
networks:
me_Homehub_internal:
external: true