Nginx Proxy Manager unter Docker
Erstellt als Erstes die benötigten Verzeichnisse:
sudo mkdir /docker/10_NginxProxyManager sudo mkdir /docker/10_NginxProxyManager/data sudo mkdir /docker/10_NginxProxyManager/letsencrypt sudo mkdir /docker/10_NginxProxyManager/db sudo chown -R mysql:mysql /docker/10_NginxProxyManager/db
Danach könnt ihr das Compose-Skript ausrollen.
version: '3.8' services: app: image: 'jc21/nginx-proxy-manager:latest' container_name: 10_NginxProxyManager restart: unless-stopped ports: - '80:80' # Public HTTP Port - '443:443' # Public HTTPS Port - '81:81' # Admin Web Port environment: # Mysql/Maria connection parameters: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "npm" DB_MYSQL_PASSWORD: "xJozk3wAtBDHP68WhsqbmwvRvSiUf" DB_MYSQL_NAME: "npm" DISABLE_IPV6: 'true' volumes: - /docker/10_NginxProxyManager/data:/data - /docker/10_NginxProxyManager/letsencrypt:/etc/letsencrypt depends_on: - db db: image: 'jc21/mariadb-aria:latest' container_name: 10_NginxProxyManager_DB restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: 'npm' MYSQL_DATABASE: 'npm' MYSQL_USER: 'npm' MYSQL_PASSWORD: 'xJozk3wAtBDHP68WhsqbmwvRvSiUf' MARIADB_AUTO_UPGRADE: '1' volumes: - /docker/10_NginxProxyManager/db:/var/lib/mysql
Weitere Infos:
https://nginxproxymanager.com/setup/#running-on-raspberry-pi-arm-devices