Install Dokuwiki on Docker

by RamWise
Published: Last Updated on 4.8K views

DokuWiki is a simple and Open Source wiki software for self hosting. It doesn’t need a backend database for storage. It is a good solution for quickly spinning up a knowledge base for your personal or business use.

Currently, linuxserver is maintaining and actively developing a DokuWiki docker image. Many of their other images are worth a look too I believe. I personally use some of them for my home use.

Installing DokuWiki Docker container

Make sure you have installed Portainer & Docker before proceeding. We will add a docker stack of DokuWiki container and run it.

1. On Portainer, add a new stack with name DokuWiki. Leave the Build method as Web Editor.

2. Copy the below compose file content into the Web editor. Do not deploy the stack yet, I’ll explain what some of the important configurations do in the following steps. You can customize if needed.

---
version: "2"
services:
  dokuwiki:
    image: linuxserver/dokuwiki
    container_name: dokuwiki
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago
    volumes:
      - /mnt/datadisk1/container/dokuwiki/config:/config
    ports:
      - 1080:80
    restart: unless-stopped
 

3. The default Container port  is 80, and it can be mapped onto a different host port. Here I set that also to the same 1080 on host. 

4. Next, add a location for storing the config data. To do that, map the /config container folder to a host folder of your choice.

That was quick! Now you can add your Wiki pages via web browser.

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More