Added volumes to hold all data, updated readme.

master
Miroslav Prasil 10 years ago
parent 7264ee747d
commit fee0fa9cf6
  1. 2
      Dockerfile
  2. 19
      README.md

@ -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"]

@ -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
--------------------

Loading…
Cancel
Save