Trace: Dokuwiki

Dokuwiki

 

This is an old revision of the document!


Back  
 Next

Dokuwiki

Main Dokuwiki Page

The main dokuwiki page dokuwiki_setup.

Dokuwiki Container

This use the the linuxserver.io image from dockerhub, linuxserver/dokuwiki. The Linuxserver.io documents can be found heredoc.linuxserver.io.
Defines web_data volume:

#Not USED
docker volume create --driver local \
    --opt type=none \
    --opt device="/home/docker_store/cloud.kptree.net/data" \
    --opt o=bind cloud_data
---
services:
  dokuwiki:
    image: lscr.io/linuxserver/dokuwiki:latest
    container_name: wiki
    environment:
      - PUID=33
      - PGID=33
      - TZ=Australia/Perth
    volumes:
    - /home/docker_store/wiki.kptree.net/config:/config
    ports:
      - 8081:80
    #  - 443:443 #optional
    restart: unless-stopped 

Todo:

  • Need to create a local LAN only functional back-up of the wiki in my back-up server so I have a backup in case the main wiki with my configuration notes becomes unavailable.

Some of the following nuances may help when transferring Dokuwiki servers:

  • The dokuwiki image uses the following permanent volume storage, in config/dokuwiki:
    • conf (basically copy everything from existing to here)
    • data (basically copy everything from existing to here)
    • inc → /app/www/public/inc (symlink back to container, no point changing)
    • lib (basically copy everything from existing to here)
    • vendor → /app/www/public/vendor (symlink back to container, no point changing)

The DokuWiki page How to backup DokuWiki? has the basic information to backup a Dokuwiki.

After setting up the internal indexes could be messed up. The plugin SearchIndex Manager can be used to recreate these indexes.

php/php-fpm settings

php /php-fpm overrides are in the config/php directory. The files in this directory can be used to set php.ini and www.conf override settings. I followed the direction for php settings from dokuwiki. I use my preferred settings for php-fpm. (I appreciate that dokuwiki does not need a lot of resources, however I do not want performance to be resource limited. Many of the setting are maximum allowances, an do not use resources unless needed.)

conf/php/php-local.ini

conf/php/www2.conf

I noticed a few days after implementing these changes the Wiki response had improved. The page updates seemed much faster.

Dokuwiki defaults to opening all links in the same page. I prefer external links the be opened in a new tab. The option can be set under admin/configuration/Link Settings/extern. Set to _tab for external links to open in new tab. See Configuring DokuWiki and Configuration Setting: target.

/app/www/public/data/attic/docker_notes/docker-dokuwiki.1775260480.txt.gz · Last modified: 2026-04-04 Sat wk14 07:54
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International