Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker-dokuwiki [2023-05-30 Tue wk22 19:53] – baumkp | docker_notes:docker-dokuwiki [2026-04-05 Sun wk14 08:01] (current) – [backup wiki data] baumkp | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag> | + | {{tag> |
| ======Dokuwiki====== | ======Dokuwiki====== | ||
| Line 6: | Line 5: | ||
| The main dokuwiki page [[tech_notes: | The main dokuwiki page [[tech_notes: | ||
| =====Dokuwiki Container===== | =====Dokuwiki Container===== | ||
| - | This use the the [[https:// | + | This uses the [[https:// |
| - | Defines web_data volume: | + | ++++Defines web_data volume:| |
| <code bash> | <code bash> | ||
| #Not USED | #Not USED | ||
| Line 15: | Line 14: | ||
| --opt o=bind cloud_data | --opt o=bind cloud_data | ||
| </ | </ | ||
| - | + | ++++ | |
| - | <code yaml>version: " | + | ++++docker.yaml| |
| + | <code yaml>--- | ||
| services: | services: | ||
| dokuwiki: | dokuwiki: | ||
| image: lscr.io/ | image: lscr.io/ | ||
| - | container_name: | + | container_name: |
| environment: | environment: | ||
| - | - PUID=1000 | + | - PUID=33 |
| - | - PGID=1000 | + | - PGID=33 |
| - TZ=Australia/ | - TZ=Australia/ | ||
| volumes: | volumes: | ||
| Line 31: | Line 31: | ||
| # - 443:443 #optional | # - 443:443 #optional | ||
| restart: unless-stopped </ | restart: unless-stopped </ | ||
| - | + | ++++ | |
| - | Todo: | + | ====Todo==== |
| - | * Need to create a local LAN only functional back-up of the wiki in my back-up server so I have a backup in case the main wiki with my configuration notes becomes unavailable. | + | *Need to create a local LAN only functional back-up of the wiki in my back-up server so I have a backup in case the main wiki with my configuration notes becomes unavailable. |
| - | | + | =====Backup===== |
| + | ====backup server==== | ||
| + | This wiki is used to help setup and maintain my home servers / lab, so if the server becomes unavailable it can become difficult to maintain the lab servers. | ||
| + | ===backup wiki data=== | ||
| Some of the following nuances may help when transferring Dokuwiki servers: | Some of the following nuances may help when transferring Dokuwiki servers: | ||
| - | * The dokuwiki image uses the following permanent volume storage, in config/ | + | *The dokuwiki image uses the following permanent volume storage, in config/ |
| - | * conf (basically copy everything from existing to here) | + | *conf (basically copy everything from existing to here) |
| - | * data (basically copy everything from existing to here) | + | *data (basically copy everything from existing to here) |
| - | * inc -> / | + | *inc -> / |
| - | * lib (basically copy everything from existing to here) | + | *lib (basically copy everything from existing to here) |
| - | * vendor -> / | + | *vendor -> / |
| - | The DokuWiki page [[https:// | + | |
| - | After setting up the internal indexes could be messed up. The plugin SearchIndex Manager can be used to recreate these indexes. | + | ++++wiki_to_local.wiki_copy.sh| |
| + | <code bash> | ||
| + | # | ||
| + | # script to copy main wiki to local wiki | ||
| - | =====Nextcloud Container===== | + | #cp flags: -r => recurse (into sub-directories), |
| - | Nextcloud publishes their own Docker container of Nextcloud. | + | |
| - | Nextcloud needs a number of services to run; the main Nextcloud server, a database and Redis. In addition, there needs to be a proxy server or similar to forward on common domain requests to sub-domains as well as handling certificates, | + | #s_d => source directory |
| + | s_d="/ | ||
| - | Refer to Nextcloud' | + | #d_d => destination directory |
| - | * uid: www-data | + | d_d="/mnt/docker_store/wiki/config/dokuwiki/" |
| - | * '' | + | |
| - | * '' | + | |
| - | ====RedirectRegex==== | + | #sub_d => sub-directory, see list of sub directories above to be copied. |
| - | I get a redirect error in Nextcloud that I have not been able to track down to date. Does not seem much info in this on the net, and the little there is also indicates a problem without and easy solution. | + | sub_d=" |
| - | Some resources related to this: | + | rm -r $d_d$sub_d |
| - | *Traefik: | + | cp -rp $s_d$sub_d $d_d$sub_d |
| - | *[[https:// | + | |
| - | *[[https:// | + | |
| - | *[[https:// | + | |
| - | ====References==== | + | |
| - | *docs nextcloud | + | |
| - | * [[https:// | + | |
| - | *[[https:// | + | |
| - | *[[https:// | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | ====Installing and Using MariaDB via Docker==== | + | sub_d=" |
| - | [[https:// | + | rm -r $d_d$sub_d |
| - | [[]] | + | cp -rp $s_d$sub_d $d_d$sub_d |
| - | ====logging==== | + | sub_d=" |
| - | [[https:// | + | rm -r $d_d$sub_d |
| - | ====backup==== | + | cp -rp $s_d$sub_d $d_d$sub_d |
| - | [[https:// | + | |
| - | ====NGINX configuration==== | + | </ |
| - | [[https://docs.nextcloud.com/ | + | To use: '' |
| + | ++++ | ||
| - | ====cron==== | + | The DokuWiki page [[https://www.dokuwiki.org/faq:backup|How to backup DokuWiki?]] has the basic information to backup a Dokuwiki. |
| - | '' | + | |
| - | [[https://help.nextcloud.com/t/ | + | |
| + | After setting up the internal indexes could be messed up. The plugin SearchIndex Manager can be used to recreate these indexes. | ||
| - | =====Calibre===== | + | ====php/php-fpm settings==== |
| + | php /php-fpm overrides are in the config/php directory. | ||
| + | ++++conf/ | ||
| + | <code php>; Edit this file to override php.ini directives and restart the container | ||
| - | ====Calibre==== | + | date.timezone |
| - | This Docker container is based [[https:// | + | upload_max_filesize |
| + | post_max_size | ||
| - | The image is based upon current Ubuntu Long term release. | + | ; |
| + | memory_limit = 256M | ||
| + | implicit_flush = off | ||
| + | max_execution_time = 30 | ||
| + | max_input_time = 60 | ||
| + | max_input_vars = 10000 | ||
| + | variables_order = " | ||
| + | register_argc_argv = off | ||
| - | ++++Calibre docker-compose.yml| | ||
| - | < | ||
| - | version: " | ||
| - | services: | ||
| - | calibre: | ||
| - | image: lscr.io/ | ||
| - | container_name: | ||
| - | security_opt: | ||
| - | - seccomp: | ||
| - | environment: | ||
| - | - PUID=1000 | ||
| - | - PGID=1000 | ||
| - | - TZ=Australia/ | ||
| - | - PASSWORD= #optional | ||
| - | - CLI_ARGS= #optional | ||
| - | volumes: | ||
| - | - / | ||
| - | ports: | ||
| - | - 8088:8080 | ||
| - | - 8089:8081 | ||
| - | restart: unless-stopped | ||
| - | networks: | ||
| - | - proxy | ||
| - | |||
| - | networks: | ||
| - | proxy: | ||
| - | external: true | ||
| </ | </ | ||
| - | |||
| - | Notes: | ||
| - | - Example version: " | ||
| - | - The log error/ | ||
| - | - To allow shell access added to '' | ||
| - | tty: true | ||
| - | stdin_open: true | ||
| - | command: / | ||
| - | |||
| ++++ | ++++ | ||
| + | ++++conf/ | ||
| + | <code php>; Edit this file to override www.conf and php-fpm.conf directives and restart the container | ||
| - | ====Calibre-web==== | + | ; Pool name |
| - | + | [www] | |
| - | This Docker container is based [[https:// | + | pm.max_children = 50 |
| - | + | pm.max_spare_servers | |
| - | The image is based upon current Ubuntu long term release. | + | |
| - | + | ||
| - | ++++Calibre-web docker-compose.yml| | + | |
| - | < | + | |
| - | version: " | + | |
| - | services: | + | |
| - | calibre-web: | + | |
| - | image: lscr.io/ | + | |
| - | #image: lscr.io/ | + | |
| - | container_name: | + | |
| - | security_opt: | + | |
| - | - seccomp: | + | |
| - | environment: | + | |
| - | - PUID=1000 | + | |
| - | - PGID=1000 | + | |
| - | - TZ=Australia/ | + | |
| - | - DOCKER_MODS=linuxserver/ | + | |
| - | - OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional | + | |
| - | volumes: | + | |
| - | - / | + | |
| - | - / | + | |
| - | ports: | + | |
| - | - 8087:8083 | + | |
| - | restart: unless-stopped | + | |
| - | networks: | + | |
| - | - proxy | + | |
| - | + | ||
| - | networks: | + | |
| - | proxy: | + | |
| - | external: true | + | |
| </ | </ | ||
| - | |||
| - | Notes: | ||
| - | - Example version: " | ||
| - | - The default login / password: admin / admin123 | ||
| - | - The /books direct points to the directory specified for the existing (or new) Calibre library | ||
| - | - The log error/ | ||
| ++++ | ++++ | ||
| - | ====References==== | ||
| - | *Matthias Schoettle [[https:// | ||
| - | *Nextcloud Docs: | ||
| - | *[[https:// | ||
| - | *The [[https:// | ||
| - | *smarthome beginner' | ||
| - | *Reddit[[https:// | ||
| - | *[[https:// | ||
| - | *[[https:// | ||
| - | *[[https:// | ||
| - | *linuxserver.io [[https:// | ||
| - | *Nextcloud [[https:// | ||
| - | *Christain Lempa [[https:// | ||
| - | |||
| - | =====Other Possible Apps/ | + | I noticed a few days after implementing these changes the Wiki response had improved. |
| - | | + | ====Dokuwiki links==== |
| - | *heindall a dashboard application. Low priority..... | + | Dokuwiki defaults to opening all links in the same page. I prefer external links the be opened in a new tab. The option can be set under admin/ |
| - | *[[https://docs.linuxserver.io/general/ | + | |
| - | <- docker_notes: | + | <- docker_notes: |