Sign inSign up

moritanosuke/dokuwiki-docker

By moritanosuke

Updated almost 5 years ago

Minimal installation of DokuWiki based on Alpine Linux.

Image
0

100K+

moritanosuke/dokuwiki-docker repository overview

This is a minimal docker image for DokuWiki. It is build from Alpine Linux for minimal size. No HTTP server is used, php is used to serve all content. This reduces the image size further, but the image does not support .htaccess files and other functionality. Most likely you want to run a reverse proxy with more functionality in front.

You can find the image on the Docker Hub and the sources on GitHub.

How to use

Create volumes for data and configuration:

docker volume create dokuwiki_conf
docker volume create dokuwiki_data

Start your wiki:

docker run -d --name some-dokuwiki -p 8080:80 -v dokuwiki_conf:/dokuwiki-conf -v dokuwiki_data:/dokuwiki-data moritanosuke/dokuwiki-docker

Now you can access your dokuwiki at http://localhost:8080

Backup your data

To get a copy of your wiki data, run the following command:

docker run --rm -v dokuwiki_data:/data -v $(pwd):/backup alpine:latest tar czf /backup/dokuwiki-data.tgz /data

Restore your data

After you started a new dokuwiki container, you can restore your previous backup with the following command:

docker run --rm -v dokuwiki_data:/data -v $(pwd):/backup alpine:latest tar xzf /backup/dokuwiki-data.tgz /data

Tag summary

Content type

Image

Digest

Size

11.7 MB

Last updated

almost 5 years ago

docker pull moritanosuke/dokuwiki-docker