Simple to use and highly versatile Open Source wiki software on lighttpd server
3.3K
docker run -d -p 80:80 --name dokuwiki aranokai/alpine-dokuwiki
You can now visit the install page to configure your new DokuWiki wiki.
For example, if you are running container locally, you can acces the page in browser by going to http://127.0.0.1/install.php
You can create data container for ease update proccess.
Create data container:
docker run --volumes-from dokuwiki --name dokuwiki-data busybox
Now you can safely delete dokuwiki container:
docker stop dokuwiki && docker rm dokuwiki
To restore dokuwiki, create new dokuwiki container and attach dokuwiki-data volume to it:
docker run -d -p 80:80 --name dokuwiki --volumes-from dokuwiki-data aranokai/alpine-dokuwiki
This will create dw-backup.tgz in Your current directory
docker run --rm --volumes-from dokuwiki -v $(pwd):/backup aranokai/alpine-dokuwiki tar -czf /backup/dw-backup.tgz /dokuwiki
If you created data container, just use --volumes-from dokuwiki-data
This will restore content from dw-backup.tgz in Your current directory
docker run --rm --volumes-from dokuwiki -v $(pwd):/backup aranokai/alpine-dokuwiki tar -xzf /backup/dw-backup.tgz
If you created data container, just use --volumes-from dokuwiki-data
There is a possibility of divergence in the permissions of current container and backup. To fix it run:
docker run --rm --volumes-from dokuwiki aranokai/alpine-dokuwiki chown -R lighttpd:lighttpd /dokuwiki
Make backup or use data container (described above)
Update image:
docker pull aranokai/alpine-dokuwiki:<desired_tag_here>
Restore backup/run with data container
Lighttpd configuration also includes rewrites, so you can enable nice URLs in settings (Advanced -> Nice URLs, set to ".htaccess")
For better performance enable xsendfile in settings.
Set to proprietary lighttpd header (for lighttpd < 1.5)
Here is simple systemd service file.
Copy it in /etc/systemd/system/ and run:
systemctl daemon-reload
systemctl start docker-dokuwiki
git clone https://bitbucket.org/Arano-kai/docker-alpine-dokuwiki.git
cd docker-alpine-dokuwiki
docker build -t my_dokuwiki ./buildroot/
Make pull request ;) But consider several rules please:
git-flow workflow, so no actual pulls in master, do your changes in developfeature/<cool_name> branch instead.hotfix/<version_num>, branched from master (please, contact with maintainer before do such pulls)git-flow and sort out everything yourself (but who reads those damn manuals? ^_^ )Content type
Image
Digest
Size
13.6 MB
Last updated
about 9 years ago
docker pull aranokai/alpine-dokuwiki