Docker Doku Wiki
Note: 1 of this post’s 13 links are now broken — mostly dead 2008–2013 feed-syndication infrastructure (FeedBurner, Gawker, AOL’s old blog network, Pheedo, Yahoo Pipes). Left as originally published.
Created a small footprint (less than 50mb) Docker image running the Doku Wiki on Lighttpd under Alpine Linux.
Git Hub = https://github.com/alastairhm/alpine-doku
Docker Hub = https://hub.docker.com/r/alastairhm/alpine-doku/
You can use volume mounts to persist your data outside the container for example
this will create the data/ conf directories in your local directory.
There is an issue with file permissions when using the volume mounts on a Mac so;
Doodle's Geek Monkey by Alastair Montgomery
Git Hub = https://github.com/alastairhm/alpine-doku
Docker Hub = https://hub.docker.com/r/alastairhm/alpine-doku/
Running
docker run --name "my-wiki" -d -p 80:80 alastairhm/alpine-dokuBrowse to install page http://localhost/install.php
Data Persistence
You can use volume mounts to persist your data outside the container for example
docker run –name “my-wiki” -d -p 80:80 -v $(pwd)/data:/var/doku/data -v $(pwd)/conf:/var/doku/conf alastairhm/alpine-doku
this will create the data/ conf directories in your local directory.
There is an issue with file permissions when using the volume mounts on a Mac so;
Backup
You can copy your Wiki out of your container withdocker cp my-wiki:/var/doku/data ./
docker cp my-wiki:/var/doku/conf ./
Restore
Startup a new instance of your Doku container thendocker cp data my-wiki:/var/doku/
docker cp conf my-wiki:/var/doku/
docker my-wiki stop
docker my-wiki start
Doodle's Geek Monkey by Alastair Montgomery
