Public | Automated Build

Last pushed: 10 hours ago
Short Description
Alpine DokuWiki Docker Container
Full Description

DokuWiki Docker Image

Run:

Run DokuWiki container:

docker run \
    --publish 8080:8080 \
    --name dokuwiki \
    --restart always \
    --detach \
    bambucha/dokuwiki

Setup DokuWiki using installer.

Data container

Create data container:

docker run --volumes-from dokuwiki --name dokuwiki_data busybox

Now you can safely delete dokuwiki container:

docker stop dokuwiki && docker rm dokuwiki

To restore dokuwiki, create new dokuwiki container and attach dokuwiki_data volume to it:

docker run \
    --publish 80:80 \
    --volumes-from dokuwiki_data \
    --name dokuwiki \
    --restart always \
    --detach \
    bambucha/dokuwiki

Backup

Create dokuwiki_backup.tar.gz archive in current directory using temporaty container:

docker run \
    --rm \
    --volumes-from dokuwiki_data \
    --volume $(pwd):/backups \
    alpine:3.5 \
    tar zcvf /backups/dokuwiki_backup.tar.gz /srv

Restore

Run DokuWiki container:

docker run \
    --publish 8080:8080 \
    --name dokuwiki \
    --restart always \
    --detach \
    bambucha/dokuwiki

Create data container:

docker run --volumes-from dokuwiki --name dokuwiki_data busybox

Stop dokuwiki:

docker stop dokuwiki

Restore from backup using temporary container:

docker run \
    --rm \
    --volumes-from dokuwiki \
    -w / \
    -v $(pwd):/backup \
    alpine:3.5 \
    tar xzvf /backup/dokuwiki_backup.tar.gz

Start dokuwiki:

docker start dokuwiki

License

The MIT License

Docker Pull Command
Owner
bambucha
Source Repository