Deploy Nginx Proxy Manager

Intro

Nginx可视化

Compose

1
2
3
4
5
6
7
8
9
10
11
12
13
version: "3"
services:
nginx-manager:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx-manager
ports:
- 80:80 # Public HTTP Port
- 443:443 # Public HTTPS Port
- 10000:81 # Admin Web Port
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
restart: unless-stopped

Static Website

If you want to configure a static website, follow the instructions below.

  1. add a new Proxy
  2. fill out Domain name, Scheme, Forward hostname(this won't be processed, just write 'localhost' is fine), Port.
  3. add Custom Configuration
1
2
3
4
location / {
root /data/nginx/default_www;
index index.html;
}