To have a small and nice Wiki running, i am using Dokuwiki by Splitbrain 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.
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:
# src: https://github.com/dokuwiki/docker/blob/main/docker-compose.yml services: dokuwiki: image: dokuwiki/dokuwiki:stable # other tags: master, <date> or <codename> # user: "1001:1001" # adjust to your required user id restart: always # ports: # - "8080:8080" # internal port is 8080, map to what you need environment: PHP_TIMEZONE: Europe/Berlin #PHP_MEMORYLIMIT: 256M #PHP_UPLOADLIMIT: 128M volumes: - dokuwiki_data:/storage networks: - default volumes: dokuwiki_data: # Still needs to be defined while without it won't enable ipv6 networks: default: driver: bridge enable_ipv6: true
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:
#dokuwiki https://dokuwiki.domain.tld:443 { header Strict-Transport-Security max-age=31536000; reverse_proxy projectname-dokuwiki-1:8080 }
Restart the caddy-service with docker
After all, go to https://dokuwiki.domain.tld/install.php an finisch the setup of your dokuwiki
You are set!
To integrate Dokuwiki with Freeipa/Authentik, check out this doc: https://docs.goauthentik.io/integrations/services/dokuwiki/