Versionsunterschiede von Testing / Docker
| 1 | {{toc}} | |
|---|---|---|
| 2 | ||
| 1 | 3 | WackoWiki DockerRepo: https://hub.docker.com/r/trojer/wackowiki |
| 2 | 4 | |
| 3 | 5 | |
| 4 | 6 | DokuWiki: ((https://www.patreon.com/posts/42961375 Running DokuWiki on Docker)) |
| 5 | 7 | * https://hub.docker.com/r/dokuwiki/dokuwiki |
| 6 | 8 | * https://github.com/dokuwiki/docker |
| 9 | ||
| 10 | ===Docker Starter==== | |
| 11 | ==== 1. Docker und Docker Compose installieren ==== | |
| 12 | %%(cl) sudo zypper refresh%% | |
| 13 | %%(cl) sudo zypper update%% | |
| 14 | %%(cl) sudo zypper in docker docker-compose%% | |
| 15 | %%(cl) sudo sudo useradd $USER docker%% | |
| 16 | %%(cl) groups%% | |
| 17 | %%(cl) systemctl start docker%% | |
| 18 | %%(cl) cd /home/$USER/Projekt/wackowiki_docker%% | |
| 19 | ||
| 20 | ==== 2. Projektordner anlegen == | |
| 21 | %%(cl) mkdir /home/$USER/Projekt/wackowiki_docker %% | |
| 22 | ||
| 23 | ==== 3. Projektordner einrichten ===== | |
| 24 | Docker-compose.yml und Dockerfile in den Ordner kopieren | |
| 25 | Scriptordner erstellen und Script Dateien kopieren | |
| 26 | ||
| 7 | 27 | |
| 8 | 28 | #|| |
| 9 | 29 | || |
| … | … | … |
| 84 | 104 | || |
| 85 | 105 | ||# |
| 86 | 106 | |
| 87 | https://github.com/jakubboucek/docker-lamp-devstack?tab=readme-ov-file#built-images | |
| 107 | ||
| 108 | ==== 4. Docker Programme ==== | |
| 109 | Im Projektverzeichnis und docker-Dienst ist gestartet? | |
| 110 | %%(cl) systemctl status docker%% | |
| 111 | ||
| 112 | %%(cl) docker image ls%% | |
| 113 | %%(cl) docker compose pull%% | |
| 114 | %%(cl) docker build -t trojer/wackowiki:latest .%% | |
| 115 | %%(cl) docker compose down%% | |
| 116 | %%(cl) docker compose up%% | |
| 88 | 117 | |
| 89 | 118 | |
| 119 | docker ps | |
| 120 | docker rmi -f $(docker images -f "dangling=true" -q) | |
| 121 | ||
| 122 | ||
| 123 | ==== 5. WackoWikiWeb aufrufen== | |
| 124 | fĂźr WackoWikiWeb: http://localhost:10080/ | |
| 125 | fĂźr phpMyAdmin http://localhost:10081/ | |
| 126 | ||
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | **ToDo** | |
| 131 | * security | |
| 132 | * secure linux image | |
| 133 | * nonrootuser | |
| 134 | * https://github.com/jakubboucek/docker-lamp-devstack?tab=readme-ov-file#built-images | |
| 135 | * https://goneuland.de/lamp-stack-apache-mysql-php-mit-docker-compose-und-traefik-installieren/ |