Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
engineering:computer_science:docker:references:mprasil_dokuwiki [2024/08/16 13:56] – removed - external edit (Unknown date) 127.0.0.1 | engineering:computer_science:docker:references:mprasil_dokuwiki [2024/08/16 13:56] (current) – ↷ Page moved from refractor_computer_science:docker:references:mprasil_dokuwiki to engineering:computer_science:docker:references:mprasil_dokuwiki carlossousa | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== mprasil / dokuwiki - Original Documentation ====== | ||
+ | |||
+ | Original Author: [[https:// | ||
+ | |||
+ | Original Source: [[https:// | ||
+ | |||
+ | ====== DokuWiki docker container ====== | ||
+ | |||
+ | ===== To run image: ===== | ||
+ | < | ||
+ | '' | ||
+ | |||
+ | </ | ||
+ | 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:// | ||
+ | |||
+ | ==== Run with bind mounts ==== | ||
+ | |||
+ | The run command above will store your data in internal Docker volumes. If you prefer to bind mount directories on your file system, then you can use the '' | ||
+ | < | ||
+ | '' | ||
+ | -v / | ||
+ | -v / | ||
+ | -v / | ||
+ | -v / | ||
+ | -v / | ||
+ | mprasil/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | When running the container you can specify version to download from docker registry by using couple provided tags like //stable// which contains current stable release (this is generaly the same as //latest//) or // | ||
+ | ===== To upate the image: ===== | ||
+ | |||
+ | ==== With internal volumes ==== | ||
+ | |||
+ | First stop your container | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | Then run new container just to hold the volumes | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | Now you can remove old container | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | ..and run a new one (you built, pulled before) | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | afterwards you can remove data container if you want | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | (or keep it for next update, takes no space anyway..) | ||
+ | |||
+ | ==== With bind mounts ==== | ||
+ | |||
+ | Just stop the old container and run the new one with the same '' | ||
+ | === Handling changes in bundled files inside volumes === | ||
+ | |||
+ | **Note:** The functionality bellow is currently only supported in '' | ||
+ | |||
+ | If you mount a volume that has previously been used with a newer version of DokuWiki than that installed in the current contaier, the newer files will //not// be overwritten by those bundled with the current (older) version of DokuWiki. If you want to force a downgrade (at your own risk!), run the container with the '' | ||
+ | < | ||
+ | |||
+ | </ | ||
+ | Additionally, | ||
+ | < | ||
+ | |||
+ | </ | ||
+ | |||
+ | Lighttpd configuration also includes rewrites, so you can enable nice URLs in settings (Advanced -> Nice URLs, set to " | ||
+ | |||
+ | For better performance enable xsendfile in settings. Set to proprietary lighttpd header (for lighttpd < 1.5) | ||
+ | |||
+ | ===== Build your own ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||