Benutzer-Werkzeuge

Webseiten-Werkzeuge


content:serverbasics:docker-dokuwiki

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
content:serverbasics:docker-dokuwiki [2024/04/20 21:00] – angelegt obel1xcontent: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 by Splitbrain [[https://github.com/dokuwiki/docker|https://github.com/dokuwiki/docker]]
  
 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. "dokuwiki". Place the file ''docker-compose.yml'' in it with the Content: To go for Dokuwiki: Create a folder in your Composer- Directory named e.g. "dokuwiki". Place the file ''docker-compose.yml'' in it with the Content:
 <file> <file>
 +
 +# src: https://github.com/dokuwiki/docker/blob/main/docker-compose.yml
 services: services:
   dokuwiki:   dokuwiki:
-    image: docker.io/bitnami/dokuwiki:latest+    image: dokuwiki/dokuwiki:stable # other tags: master, <date> or <codename> 
 +#    user: "1001:1001" # adjust to your required user id
     restart: always     restart: always
 +#    ports:
 +#      - "8080:8080" # internal port is 8080, map to what you need
     environment:     environment:
-      - DOKUWIKI_PASSWORD=SomeSecretPassword +      PHP_TIMEZONE: Europe/Berlin 
-      - PHP_EXPOSE_PHP=false +      #PHP_MEMORYLIMIT256M 
-      - PHP_ENABLE_OPCACHE=true +      #PHP_UPLOADLIMIT128M
-      - APACHE_HTTP_PORT_NUMBER=8079 +
-     - APACHE_HTTPS_PORT_NUMBER=8080 +
-    healthcheck+
-      test: "curl hostname:8079" +
-      interval: "60s" +
-      timeout: "3s" +
-      start_period: "5s" +
-      retries: 3 +
-    ports: +
-      - '8079:8079'+
     volumes:     volumes:
-      - dokuwiki_data:/bitnami/dokuwiki+      - dokuwiki_data:/storage 
 +    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: true
 +
 +</file>
 +
 +Start the Service in the directory with ''docker compose up -d''
 +
 +Than, got to your Caddy- Directory and add a redirect to the file as always:
 +
 +<file>
 +#dokuwiki
 +https://dokuwiki.domain.tld:443 {
 +        header Strict-Transport-Security max-age=31536000;
 +        reverse_proxy projectname-dokuwiki-1:8080
 +}
  
 </file> </file>
  
-Replace hostname by your hostname and make some good password.+Restart the caddy-service with docker
  
-Start it with ''docker copmpose up -d''+After all, go to [[https://dokuwiki.domain.tld/install.php|https://dokuwiki.domain.tld/install.php]] an finisch the setup of your dokuwiki
  
-Try if it works using http://hostname:8079+You are set!
  
-For everything else visit: https://docs.bitnami.com/general/apps/dokuwiki/+====== OAuth ======
  
-Thats all+To integrate Dokuwiki with Freeipa/Authentik, check out this doc: [[https://docs.goauthentik.io/integrations/services/dokuwiki/|https://docs.goauthentik.io/integrations/services/dokuwiki/]]
  
  
content/serverbasics/docker-dokuwiki.1713639617.txt.gz · Zuletzt geändert: von obel1x

Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki