可视化管理 Nginx 反向代理、SSL 证书和多站点的 WebUI 面板,Docker 一键部署。
🖥️ 系统监控说明:CPU/内存/SWAP 直接读取宿主机真实数据(无需额外配置)。默认磁盘显示数据卷用量;如需监控宿主机根分区精确容量,在 volumes 加一行
- /:/host:ro(只读挂载,可选):
services:
nginx-manager:
image: ywsj/nginx-manager:latest
container_name: nginx-manager
ports:
- "80:80"
- "443:443"
- "5400:5000"
volumes:
- ./data:/data
- ./conf.d:/etc/nginx/conf.d
- ./ssl:/etc/nginx/ssl
- ./logs:/var/log/nginx
- ./acme.sh:/home/appuser/.acme.sh
# - /:/host:ro # 可选:监控宿主机磁盘精确容量
environment:
- SECRET_KEY=change...random...string
restart: always
docker compose up -d
docker run -d \
--name nginx-manager \
-p 80:80 -p 443:443 -p 5400:5000 \
-v ./data:/data \
-v ./conf.d:/etc/nginx/conf.d \
-v ./ssl:/etc/nginx/ssl \
-v ./logs:/var/log/nginx \
-v ./acme.sh:/home/appuser/.acme.sh \
# -v /:/host:ro \ # 可选:监控宿主机磁盘精确容量
-e SECRET_KEY=change...random...string \
--restart always \
ywsj/nginx-manager:latest
http://<IP>:5400,设置管理密码ywsj-nginx-manager/
├── app.py # Flask 主应用
├── monitor.py # 系统监控 (CPU/内存/磁盘/SWAP)
├── nginx_manager.py # Nginx 配置管理
├── ssl_manager.py # SSL 证书管理 (acme.sh)
├── i18n/ # 多语言
│ ├── __init__.py
│ └── translations.py
├── templates/ # Jinja2 模板
│ ├── base.html
│ ├── index.html # 仪表盘
│ ├── hosts.html # 代理站点
│ ├── ssl.html # SSL 证书
│ ├── redirects.html # 重定向
│ ├── streams.html # 端口转发
│ ├── logs.html # 日志
│ ├── login.html
│ └── setup.html
├── static/
│ ├── css/style.css
│ └── js/
│ ├── app.js
│ └── i18n.js
├── nginx/nginx.conf # Nginx 基础配置
├── Dockerfile
├── docker-compose.yml
├── entrypoint.sh
├── requirements.txt
├── .dockerignore
└── .github/workflows/
└── docker-publish.yml
MIT
Content type
Image
Digest
sha256:af6607495…
Size
76.6 MB
Last updated
4 days ago
docker pull ywsj/nginx-manager