What is DokuWiki?
DokuWiki is a free and open-source wiki platform that you can self-host on Docker. This article will walk you through how to install DokuWiki on docker. DokuWiki is super simple to use, you can edit pages using markdown or install a WYSIWYG editor. What makes DokuWiki unique when compared to other Wiki software is that it stores it’s information in markdown files on your server rather than relying on a separate database. Since it does not require a separate database, DokuWiki is not only very simple to install, it is also quick and responsive. DockuWiki has plenty of templates and plugins available that are easy to install through the extension manager within the admin configuration page.
This article will walk you though how to install DokuWiki on Docker.
Create Docker Volume
To make sure that your configuration persists across container updates, this container will require one volume on your docker host that will need to be mapped to the /config
folder within the container. To create the volume, type in docker volume create dokuwiki
in your terminal. This will create a volume that will be used in the below docker run command to map to the /config
folder..
DokuWiki Docker Run Command
Before you run the following command to install DokuWiki on Docker, please make sure you have docker installed on your system. If you are new to Docker, you can review the 25 Basic Docker Commands for Beginners to help get you started.
To install DokuWiki on Docker, copy and paste the below command in your docker host terminal
docker create \ --name=dokuwiki \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=America/New_York \ -e APP_URL=[YOURURL] `#optional` \ -p 8081:80 \ -v dokuwiki:/config \ --restart unless-stopped \ linuxserver/dokuwiki
Variables
Variable | Description |
---|---|
--name=dokuwiki | Names the container “dokuwiki”. |
-e PUID=1000 | Sets Process User ID to 1000 to help avoid permission issues. |
-e PGID=1000 | Sets Process Group ID to 1000 to help avoid permission issues. |
-e TZ=[YOURTZ] | Change your time zone with the correct time zone from the TZ Database. |
-e APPURL=[YOURURL] | The IP address or URL that you will use to connect to your server. This is useful if you are running the container behind a reverse proxy. |
-p 8081:80/udp | Exposes port 8081 on the host and maps it to port 80 on the container to connect to DokuWiki in the Browser. You can also use port 443 for SSL. |
linuxserver/dokuwiki | The image that is used for this container from the Docker Hub. |
Success!
After you run the command you can access the DokuWiki installation process from your browser at http://SERVERIP:8081/install.php
. Here you will setup your admin user and configure your initial settings. Once you have competed the initial configuration, restart the container. Now that you’ve installed DokuWiki on docker, when the container comes back online, you can visit your installation at http://SERVERIP:8081
.
If you are looking to review alternatives to DokuWiki, I recommend you review Bookstack.
If you have any questions or suggestions, please leave a comment below.
The post, How to Quickly Install DokuWiki on Docker, first appeared on Codeopolis.
Like!! I blog quite often and I genuinely thank you for your information. The article has truly peaked my interest.
Like!! Thank you for publishing this awesome article.