services:dokuwiki
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:dokuwiki [2026/02/06 23:46] – external edit 127.0.0.1 | services:dokuwiki [2026/02/08 08:35] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== DokuWiki ====== | ====== DokuWiki ====== | ||
| - | Self-hosted wiki (diese Seite!). | + | Wiki für Infrastruktur-Dokumentation. |
| - | ===== Access | + | ===== Details |
| - | ^ Item ^ Value ^ | + | ^ Key ^ Value ^ |
| - | | URL | [[https:// | + | |
| - | | Internal | [[https:// | + | |
| | Container | CT 113 | | | Container | CT 113 | | ||
| - | | IP | 10.100.161.113:80 | | + | | IP | 10.100.161.113 |
| + | | Port | 80 | | ||
| + | | RAM | 512 MB | | ||
| + | | URL | https:// | ||
| - | ===== Installation | + | ===== Features |
| - | <code bash> | + | * Flat-file Storage (kein DB nötig) |
| - | # Container erstellen | + | |
| - | pct create 113 local: | + | |
| - | --hostname dokuwiki \ | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | --features nesting=1 \ | + | |
| - | --unprivileged 1 \ | + | |
| - | --start 1 | + | |
| - | # Nginx + PHP installieren | + | ===== Struktur ===== |
| - | pct exec 113 -- bash -c ' | + | |
| - | apt update | + | |
| - | apt install -y nginx php-fpm php-xml php-mbstring php-gd php-intl wget unzip | + | |
| - | ' | + | |
| - | # DokuWiki herunterladen | + | < |
| - | pct exec 113 -- bash -c ' | + | /var/www/dokuwiki/ |
| - | cd /tmp | + | ├── data/ |
| - | wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | + | │ |
| - | tar xzf dokuwiki-stable.tgz | + | │ |
| - | mv dokuwiki-*/ /var/www/ | + | │ |
| - | chown -R www-data: | + | │ |
| - | ' | + | ├── conf/ # Konfiguration |
| + | └── lib/plugins/ # Plugins | ||
| + | </code> | ||
| - | # Nginx Config | + | ===== Namespaces ===== |
| - | pct exec 113 -- tee / | + | |
| - | server { | + | |
| - | listen 80; | + | |
| - | server_name _; | + | |
| - | root / | + | |
| - | index doku.php; | + | |
| - | location / { | + | ^ Namespace ^ Inhalt ^ |
| - | | + | | infrastructure | Server, Bootstrap, Proxmox | |
| - | } | + | | services | Service-Dokumentation | |
| + | | network | VLANs, Firewall | | ||
| - | location @dokuwiki { | + | ===== Backup ===== |
| - | rewrite ^/ | + | |
| - | rewrite ^/ | + | |
| - | rewrite ^/ | + | |
| - | rewrite ^/(.*) / | + | |
| - | } | + | |
| - | location ~ \.php$ { | + | <code bash> |
| - | | + | rsync -av /var/www/dokuwiki/ |
| - | fastcgi_pass unix:/run/php/php-fpm.sock; | + | |
| - | } | + | |
| - | + | ||
| - | location ~ /(data|conf|bin|inc)/ { | + | |
| - | deny all; | + | |
| - | } | + | |
| - | } | + | |
| - | NGINX | + | |
| - | + | ||
| - | pct exec 113 -- ln -sf / | + | |
| - | pct exec 113 -- rm -f / | + | |
| - | pct exec 113 -- systemctl restart nginx php*-fpm | + | |
| </ | </ | ||
| - | ==== Setup Wizard | + | ===== Webserver |
| - | + | ||
| - | - Öffne http:// | + | |
| - | - Admin-Account anlegen | + | |
| - | - install.php löschen: '' | + | |
| - | + | ||
| - | ===== Configuration ===== | + | |
| - | + | ||
| - | ^ File ^ Purpose ^ | + | |
| - | | / | + | |
| - | | / | + | |
| - | | / | + | |
| - | + | ||
| - | ===== Management | + | |
| + | Nginx + PHP-FPM: | ||
| <code bash> | <code bash> | ||
| - | # Status | + | systemctl status nginx php8.2-fpm |
| - | pct exec 113 -- systemctl status nginx php*-fpm | + | |
| - | + | ||
| - | # Logs | + | |
| - | pct exec 113 -- tail -f / | + | |
| </ | </ | ||
| - | ===== Backup | + | ===== Ansible |
| <code bash> | <code bash> | ||
| - | # Flat-file — einfach Ordner sichern | + | ansible-playbook site.yml --limit |
| - | tar czf dokuwiki_backup_$(date +%Y%m%d).tar.gz \ | + | |
| - | / | + | |
| - | /var/www/dokuwiki/conf | + | |
| </ | </ | ||
| - | ===== Related | + | ===== Links ===== |
| - | * [[infrastructure:containers|Containers]] - CT 113 details | + | * [[https:// |
| + | * [[wiki: | ||
services/dokuwiki.1770421619.txt.gz · Last modified: by 127.0.0.1
