Mount full lib directory as volume

master
Jordan Atwood 2 years ago
parent 0bfe8020b8
commit 5f4e600298
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 2
      Dockerfile
  2. 18
      README.md
  3. 2
      docker-startup.sh

@ -49,7 +49,7 @@ RUN mkdir /var/run/lighttpd && chown www-data.www-data /var/run/lighttpd
COPY docker-startup.sh /startup.sh
EXPOSE 80
VOLUME ["/dokuwiki/data/","/dokuwiki/lib/plugins/","/dokuwiki/conf/","/dokuwiki/lib/tpl/","/var/log/"]
VOLUME ["/dokuwiki/data/","/dokuwiki/lib/","/dokuwiki/conf/","/var/log/"]
ENTRYPOINT ["/startup.sh"]
CMD ["run"]

@ -5,7 +5,14 @@ DokuWiki docker container
To run image:
-------------
docker run -d -p 80:80 --name my_wiki mprasil/dokuwiki
First, build the image locally to incorporate the changes [from the upstream
image](https://hub.docker.com/r/mprasil/dokuwiki):
docker build -t my_dokuwiki .
Once built, a container of this modified image can be run:
docker run -d -p 80:80 --name my_wiki my_dokuwiki
You can now visit the install page to configure your new DokuWiki wiki.
@ -19,8 +26,7 @@ The run command above will store your data in internal Docker volumes. If you pr
docker run -d -p 80:80 --name my_wiki \
-v /data/docker/dokuwiki/data:/dokuwiki/data \
-v /data/docker/dokuwiki/conf:/dokuwiki/conf \
-v /data/docker/dokuwiki/lib/plugins:/dokuwiki/lib/plugins \
-v /data/docker/dokuwiki/lib/tpl:/dokuwiki/lib/tpl \
-v /data/docker/dokuwiki/lib:/dokuwiki/lib \
-v /data/docker/dokuwiki/logs:/var/log \
mprasil/dokuwiki
@ -80,9 +86,3 @@ 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)
Build your own
--------------
docker build -t my_dokuwiki .

@ -25,7 +25,7 @@ if [ "$1" = 'overwrite' ]; then overwrite=1; else overwrite=0; fi
if [ "$1" = 'run' ] || [ "$1" = 'downgrade' ] || [ "$1" = 'overwrite' ]; then
# Check each volume directory in turn
for d in conf data lib/plugins lib/tpl; do
for d in conf data lib; do
if [ -f "$dokudir/$d/$verfile" ]; then
volumever="$(date -f <(awk '{print $1}' "$dokudir/$d/$verfile" | tr -d '[:alpha:]') +%s)"
else

Loading…
Cancel
Save