1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/dokuwiki/README.md

48 lines
1.3 KiB
Markdown
Raw Normal View History

2015-08-24 18:52:58 +02:00
dokuwiki
========
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
![](https://badge.imagelayers.io/vimagick/dokuwiki:latest.svg)
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
[DokuWiki][1] is a simple to use and highly versatile Open Source wiki software that doesn't require a database.
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
## Run
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
```
$ docker run -d -p 8000:80 --restart always --name dokuwiki vimagick/dokuwiki
```
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
## Backup
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
```
2015-08-26 15:53:00 +02:00
$ docker run --rm --volumes-from dokuwiki -v `pwd`:/backup alpine tar czf /backup/dw-backup.tgz /var/www/html
2015-08-24 18:52:58 +02:00
```
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
## Restore
2014-12-17 09:34:20 +02:00
2015-08-24 18:52:58 +02:00
```
2015-08-26 15:53:00 +02:00
$ docker run --rm --volumes-from dokuwiki -v `pwd`:/backup alpine tar xzf /backup/dw-backup.tgz
2015-08-24 18:52:58 +02:00
```
2014-12-17 09:34:20 +02:00
2015-08-26 16:07:19 +02:00
## Plugin
2015-08-26 15:33:48 +02:00
2015-08-26 16:07:19 +02:00
You can install [plugins][2] via **Extension Manager**.
2015-08-26 15:33:48 +02:00
2015-08-26 16:07:19 +02:00
- [backup](https://www.dokuwiki.org/plugin:backup)
- [emoji](https://www.dokuwiki.org/plugin:emoji)
- [wrap](https://www.dokuwiki.org/plugin:wrap)
You can also install them manually.
2015-08-26 15:33:48 +02:00
```
2015-08-26 15:53:00 +02:00
$ docker exec -it dokuwiki sh
2015-08-26 15:33:48 +02:00
>>> cd /var/www/html/lib/plugins/
>>> mkdir backup emoji wrap
>>> wget -O- https://github.com/tatewake/dokuwiki-plugin-backup/archive/master.tar.gz | tar xz --strip 1 -C backup
>>> wget -O- https://github.com/ptbrown/dokuwiki-plugin-emoji/archive/master.tar.gz | tar xz --strip 1 -C emoji
>>> wget -O- https://github.com/selfthinker/dokuwiki_plugin_wrap/archive/stable.tar.gz | tar xz --strip 1 -C wrap
>>> chown -R nobody:nobody backup emoji wrap
```
2015-08-24 18:52:58 +02:00
[1]: https://www.dokuwiki.org/dokuwiki
2015-08-26 16:07:19 +02:00
[2]: https://www.dokuwiki.org/plugins