什么是 Nginx Proxy Manager ?
Nginx Proxy Manager 是用于管理 Nginx 代理主机的 Docker 容器,具有简单、强大的界面。它使您可以轻松地转发到您在家里或其他地方运行的网站,包括免费的 SSL,而无需对 Nginx 或 Letsencrypt 了解太多。
登录: admin@example.com
密码: changeme
version: "2"
services:
npm:
image: jc21/nginx-proxy-manager:latest
container_name: npm
hostname: npm
restart: unless-stopped
ports:
- 80:80
- 443:443
- 81:81
environment:
- DB_SQLITE_FILE=/data/database.sqlite
# - DB_MYSQL_HOST=mariadb
# - DB_MYSQL_PORT=3306
# - DB_MYSQL_USER=npm
# - DB_MYSQL_PASSWORD=npm
# - DB_MYSQL_NAME=npm
volumes:
- /home/appdata/npm/data:/data
- /home/appdata/npm/letsencrypt:/etc/letsencrypt
networks:
- mynet
networks:
mynet:
external:
name: mynet