Public Repository

Last pushed: 19 hours ago
Short Description
Docker image with dokuwiki and nginx, Release 2017-02-19e “Frusterick Manners"
Full Description

docker-dokuwiki

A doker image providing dokuwiki with focus of backup in the container

This project source is https://github.com/migae21/docker-dokuwiki

This project based on the work of https://github.com/istepanov/docker-dokuwiki also look at
also look at http://fast.jumpingcrab.com/wp/blog/2017/02/06/docker-eine-praktische-einfuehrung-am-beispiel-dokuwiki/

with some improvements:

  • It will check the md5sum of the dokuwiki download.
  • It adds php7-openssl and his dependencies to ssl-download plugins within the image (https://github.com/Simon-L/docker-dokuwiki)
  • It creates a volume "lib/plugins" for easy add|remove|backup plugins
  • It creates a volume "var/dokuwiki-backup" witch contains a week of daily Backups per cron
  • Adding timezone support \
    Change the ENV TIMEZONE=Europe/Vienna in the Dockerfile to your needs
  • Adding ntpd support via supervisor
  • Upgrade to the latest (Bugfix) Release 2017-02-19e “Frusterick Manners”
  • Upgrade Alpine Linux to latest stable version v3.6
  • (NEW) php upload limit set to 64MB \
    Change the value to your needs in the file upload.ini
  • Fix the templates: create a new symlink to /var/www/lib/tpl THX to https://github.com/mavx14/

Download the Image und run the Container dirctly from Docker Hub or Cloud

docker run -d -p 80:80 --name dokuwiki migae21/dokuwiki:latest

  • #If you want any other Timezone than EUROPE/VIENNA use th -e paramater
  • #i.e. for Londeon use -e Europe/London listening on Port 8000 type
  • docker run -d -p 8000:80 --name dokuwiki migae21/dokuwiki:latest

Build the image form th GITHUB sources

  • git clone https://github.com/migae21/docker-dokuwiki
  • docker build . -t dokuwiki
  • docker run -d -p 80:80 --name dokuwiki dokuwiki
  • #If you want any other Timezone than EUROPE/VIENNA use th -e paramater
  • #i.e. for Londeon use -e Europe/London listening on Port 8000 type
  • docker run -d -p 8000:80 -e Europe/London --name dokuwiki dokuwiki

Configure dokuwiki

Upgrade from old Versions

#validate and save the backups

mkdir dokuwiki-backup

    #if you have a Version without the cron-backup connect to the container and run 
    docker exec -ti dokuwiki /bin/sh
    /etc/periodic/daily/backup(.sh)   
    exit

cd dokuwiki-backup
docker cp dokuwiki:/var/dokuwiki-backup .
docker stop dokuwiki
docker rm dokuwiki

#checkout the new version from my github-repo and build it
git checkout https://github.com/migae21/docker-dokuwiki
cd docker-dokuwiki
docker build . -t dokuwiki

#launch the service
docker run -d -p 80:80 --name dokuwiki dokuwiki

#restore the backup replace $DAY with the weekday of the backup
docker cp $DAY.tgz dokuwiki:/var/dokuwiki-backup/

#exec a shell from the container
docker exec -ti dokuwiki /bin/sh
cd /
tar xzvf /var/dokuwiki-backup/Wednesday.tgz
#finish, launch and test dokuwiki
Docker Pull Command
Owner
migae21