From fee0fa9cf6ffb660c26563430dcf262c5a6a1135 Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Wed, 24 Sep 2014 19:49:45 +0000 Subject: [PATCH] Added volumes to hold all data, updated readme. --- Dockerfile | 2 +- README.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c21f16f..63d5aa2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ RUN lighty-enable-mod dokuwiki fastcgi accesslog RUN mkdir /var/run/lighttpd && chown www-data.www-data /var/run/lighttpd EXPOSE 80 -VOLUME ["/dokuwiki/data/", "/var/log/"] +VOLUME ["/dokuwiki/data/","/dokuwiki/lib/plugins/","/dokuwiki/conf/","/dokuwiki/lib/tpl/","/var/log/"] ENTRYPOINT ["/usr/sbin/lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] diff --git a/README.md b/README.md index 9ebfe52..e33ab02 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,25 @@ 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 +To upate the image: +------------------- + +First stop your container + + docker stop my_wiki + +Then run new container just to hold the volumes + + docker run --volumes-from my_wiki --name my_wiki_data busybox true + +Now you can remove old container + + docker rm my_wiki + +..and run a new one (you built, pulled before) + + docker run -d -p 80:80 --name my_wiki --volumes-from my_wiki_data mprasil/dokuwiki + Optimizing your wiki --------------------