content:serverbasics:docker-dokuwiki
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| content:serverbasics:docker-dokuwiki [2024/04/20 21:00] – angelegt obel1x | content:serverbasics:docker-dokuwiki [2025/06/05 23:36] (aktuell) – obel1x | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Docker: Dokuwiki ====== | ====== Docker: Dokuwiki ====== | ||
| - | To have a small and nice Wiki running, i am using Dokuwiki. | + | To have a small and nice Wiki running, i am using Dokuwiki |
| I would not recommend to bind the wiki directly to the internet, but rather use Caddy for setting up SSL (see other section here) and to proxy the requests, so i will not open SSL port in this container. | I would not recommend to bind the wiki directly to the internet, but rather use Caddy for setting up SSL (see other section here) and to proxy the requests, so i will not open SSL port in this container. | ||
| Zeile 7: | Zeile 7: | ||
| To go for Dokuwiki: Create a folder in your Composer- Directory named e.g. " | To go for Dokuwiki: Create a folder in your Composer- Directory named e.g. " | ||
| < | < | ||
| + | |||
| + | # src: https:// | ||
| services: | services: | ||
| dokuwiki: | dokuwiki: | ||
| - | image: | + | image: |
| + | # user: " | ||
| restart: always | restart: always | ||
| + | # ports: | ||
| + | # - " | ||
| environment: | environment: | ||
| - | | + | |
| - | | + | #PHP_MEMORYLIMIT: 256M |
| - | - PHP_ENABLE_OPCACHE=true | + | |
| - | - APACHE_HTTP_PORT_NUMBER=8079 | + | |
| - | # - APACHE_HTTPS_PORT_NUMBER=8080 | + | |
| - | healthcheck: | + | |
| - | | + | |
| - | interval: " | + | |
| - | timeout: " | + | |
| - | start_period: | + | |
| - | retries: 3 | + | |
| - | ports: | + | |
| - | - '8079:8079' | + | |
| volumes: | volumes: | ||
| - | - dokuwiki_data:/ | + | - dokuwiki_data:/ |
| + | networks: | ||
| + | - default | ||
| volumes: | volumes: | ||
| dokuwiki_data: | dokuwiki_data: | ||
| + | |||
| + | # Still needs to be defined while without it won't enable ipv6 | ||
| + | networks: | ||
| + | default: | ||
| + | driver: bridge | ||
| + | enable_ipv6: | ||
| + | |||
| + | </ | ||
| + | |||
| + | Start the Service in the directory with '' | ||
| + | |||
| + | Than, got to your Caddy- Directory and add a redirect to the file as always: | ||
| + | |||
| + | < | ||
| + | #dokuwiki | ||
| + | https:// | ||
| + | header Strict-Transport-Security max-age=31536000; | ||
| + | reverse_proxy projectname-dokuwiki-1: | ||
| + | } | ||
| </ | </ | ||
| - | Replace hostname by your hostname and make some good password. | + | Restart the caddy-service with docker |
| - | Start it with '' | + | After all, go to [[https:// |
| - | Try if it works using http:// | + | You are set! |
| - | For everything else visit: https:// | + | ====== OAuth ====== |
| - | Thats all | + | To integrate Dokuwiki with Freeipa/ |
content/serverbasics/docker-dokuwiki.1713639617.txt.gz · Zuletzt geändert: von obel1x
