Sign inSign up

steilerdev/dokuwiki

By steilerdev

•Updated over 3 years ago
Archived

Docker Container for DokuWiki

Image
0

464

steilerdev/dokuwiki repository overview

⁠Docker Container for DokuWiki

A Docker Container for dokuwiki⁠ with sensible default configuration.

⁠Configuration options

⁠Environment Variables

The following environmental variables can be used for configuration. Those configurations are only applied if the relevant configuration files do not exist (therefore they are only relevant for the initial start).

⁠Volume Mounts

The following paths are recommended for persisting state and/or accessing configurations

  • /data
    All data that is written by DokuWiki is stored here (see savedir⁠),
  • /conf
    Configuration⁠ data is stored here
  • /site/lib/plugins
    Plugins⁠ are persisted here between upgrades
  • /site/lib/tpl
    Templates⁠ are persisted here between upgrades
  • /static-docs
    A folder directly serving the content through the endpoint /static-docs

⁠docker-compose example

Usage with nginx-proxy inside of predefined steilerGroup network, with nginx-proxy⁠ and acme-companion⁠. The php container is expected to provide php-fpm from wiki_php:9000 and needs to have opcache mbstring xml intl json curl fileinfo pcntl installed (see documentation⁠). I've created a purpose build image for this: steilerdev/php:7-wiki⁠.

version: '2'
services:
  wiki:
    image: steilerdev/dokuwiki:latest
    container_name: wiki
    restart: unless-stopped
    environment:
      VIRTUAL_HOST: "wiki.<tld>.net"
      VIRTUAL_PORT: 80
      LETSENCRYPT_HOST: "wiki.<tld>.net"
      TITLE: "Wiki"
      WIKI_LANG: "de"
      LICENSE: "cc-by-nc"
      USEACL: 1
      USER: "JohnDoe"
      NAME: "John Doe"
      EMAIL: "[email protected]"
    volumes:
      - "/opt/docker/wiki/volumes/data:/data"
      - "/opt/docker/wiki/volumes/conf:/conf"
      - "/opt/docker/wiki/volumes/plugins:/site/lib/plugins"
      - "/opt/docker/wiki/volumes/templates:/site/lib/tpl"
      - "/opt/docker/wiki/volumes/static-docs:/static-docs"
  wiki_php:
    image: steilerdev/php:7-wiki
    container_name: wiki_php
    restart: unless-stopped
    volumes_from:
      - "wiki"
networks:
  default:
    external:
      name: steilerGroup

Tag summary

Content type

Image

Digest

sha256:80617d7c6…

Size

84.5 MB

Last updated

over 3 years ago

docker pull steilerdev/dokuwiki