Mariadb + phpMyAdmin + Wordpress mit Portainer auf Raspberry Pi

Zuletzt aktualisiert am 28. Februar 2024 2 Minuten

Was muss vorher erledigt werden?

  1. Einen Raspberry-PI besorgen
    1. Ein Netzteil
    2. Eine USB Festplatte
  2. Betriebssystem aufspielen und grundsätzliche Einrichtung.
  3. OpenMediavault installieren
  4. Docker installieren
  5. Portainer installieren

Wie ich einen so Raspberry-pi vorbereite steht hier , dann…

MARIA DB  mit Portainer 

  • Image configuration
    • Name: mariadb
    • Image: linuxserver/mariadb
    • advanced mode
    • Always pull the image: on
  • Network configuaration
    • Manual network port publishing
    • publish a new network port
    • host: 3306
    • container: 3306
    • tcp
  • Access Control
    • Enable access control: on
    • Administrators
  • Actions
    • Auto remove:off
  • Volumes
    • Container: /config
    • Bind
    • Host: /srv/dev-disk-by-uuid-82011d01/config/mariadb
  • ENV
    • PUID=998
    • PGID=100
    • MYSQL_ROOT_PASSWORD=password
    • TZ=Europe/London
    • MYSQL_DATABASE=db_wordpress
    • MYSQL_USER=pidb
    • MYSQL_PASSWORD=password
  • Restart policy
    • Unless stopped

phpmyadmin mit Portainer

  • Image configuration
    • Name: myphpadmin
    • Image: ebspace/armhf-phpmyadmin
    • advanced mode
    • Always pull the image: on
  • Network configuaration
    • Manual network port publishing
    • publish a new network port
    • host: 8085
    • container: 80
    • tcp
  • Access Control
    • Enable access control: on
    • Administrators
  • Actions
    • Auto remove:off
  • Volumes
    • Container
    • /etc/phpmyadmin/config.user.inc.php
    • Bind
    • Host
    • /srv/dev-disk-by-uuid-82011d01/config/phpMyAdmin
  • ENV
    • PMA_ARBITRARY = 1
    • PMA_HOST = raspberry-pi4
    • PMA_VERBOSE = wordpress
    • PMA_PORT = 3306
    • PMA_USER  = pidb
    • PMA_PASSWORD = password
  • Restart policy
    • Unless stopped

Wordpress mit Portainer 

  • Image configuration
    • Name: wordpress
    • Image: wordpress:latest
    • advanced mode
    • Always pull the image: on
  • Network configuaration
    • Manual network port publishing
    • publish a new network port
    • host: 8081
    • container: 80
    • tcp
  • Access Control
    • Enable access control: on
    • Administrators
  • Actions
    • Auto remove:off
  • Volumes
    • Container
    • /var/www/html
    • Bind
    • Host
    • /srv/dev-disk-by-uuid-82011d01/config/wordpress
  • ENV
    • WORDPRESS_DB_HOST = 3306
    • WORDPRESS_DB_USER = pidb
    • WORDPRESS_DB_PASSWORD = password
    • WORDPRESS_DB_NAME = db_wordpress
  • Restart policy
    • Unless stopped

Fußnoten

PUID und PGID ermitteln

id admin

uid=998(admin) gid=100(users) groups=100(users),993(openmediavault-admin)

Config-Verzeichnis mit OpenMediaVault anlegen

  • Openmediavault —> Zugriffskontrolle —> Freigegebene Ordner
  • hinzufügen
  • Name: config-…
  • Gerät: Festplatte auswählen
  • Pfad: /config/…
  • Zugriffsrechte: Administrator: read/write, Benutzer: read/write, Andere: nur lesen
  • Speichern
  • Änderung bestätigen

Absoluten Config Pfad mit OpenMediaVault ermitteln

  • Openmediavault —> Zugriffskontrolle —> Freigegebene Ordner ->
  • Klick rechts auf das Pfeil-Runter Symbol einer Spalte -> Columns -> Absoluter Pfad anzeigen
  • Den absolute Pfad aus der Tabellenspalte heraus kopieren.
  • Mausklick Rechts auf das Element
  • Element Information — bei Safari
  • Den Pfad suchen und kopieren
    • /srv/dev-disk-by-uuid-82011d01/ …