Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
content:serverbasics:docker-dokuwiki [2024/04/20 19:17] – [Important: ACLs] Danielcontent:serverbasics:docker-dokuwiki [2025/06/05 21:36] (aktuell) Daniel
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 
-      - DOKUWIKI_USERNAME=admin +      #PHP_MEMORYLIMIT256M 
-      - PHP_EXPOSE_PHP=false +      #PHP_UPLOADLIMIT128M
-      - PHP_ENABLE_OPCACHE=true +
-      - 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> </file>
  
-Replace hostname by your ''hostname'' and make some good password.+Start the Service in the directory with ''docker compose up -d''
  
-Start it in the directory with ''docker compose up -d''+Than, got to your CaddyDirectory and add a redirect to the file as always:
  
-Try if it works using [[http://hostname:8079|http://hostname:8079]]+<file> 
 +#dokuwiki 
 +https://dokuwiki.domain.tld:443 { 
 +        header Strict-Transport-Security max-age=31536000; 
 +        reverse_proxy projectname-dokuwiki-1:8080 
 +}
  
-You are set!+</file>
  
-===== Important: ACLs =====+Restart the caddy-service with docker
  
-By Defaulteveryone can Upload/Edit everything even without logon. If you don't want to have nice pages created by nice bots in the internet: quickly logon to dokuwki with your user and password given above and then got to: [[http://hostname:8079/start?do=admin&page=acl|http://hostname:8079/start?do=admin&page=acl]]+After allgo to [[https://dokuwiki.domain.tld/install.php|https://dokuwiki.domain.tld/install.php]] an finisch the setup of your dokuwiki
  
-Change the permission for User/Group @All on Page * to Read or None and select Update. +You are set!
- +
-After that, the dokuwiki will be a little more secure. +
- +
- +
-===== Ressources =====+
  
-For everything else visit: [[https://hub.docker.com/r/bitnami/dokuwiki|https://hub.docker.com/r/bitnami/dokuwiki]] and for some basics [[https://docs.bitnami.com/general/apps/dokuwiki/|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.1713640630.txt.gz
  • Zuletzt geändert: 2024/04/20 19:17
  • von Daniel