一、Nginx Proxy Manage( NPM)
1. Introduction to NPM
Nginx Proxy Manager, which is a visual Nginx reverse proxy artifact, can easily configure Nginx with your fingers. We can complete the proxy configuration of the website through some settings on the web page, without having to manually install Nginx and modify the configuration file.
2. docker-compose deploys NPM
Deploy Nginx Proxy Manager using docker-compose:
version: "3"
services:
app:
image: 'swr.cn-north-1.myhuaweicloud.com/iivey/nginx-proxy-manager:v1.0'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
volumes:
- ./data: