deploy.ccSelf-hosting deploy handbook
deploy.cc / Apps / Dev & ops / Nginx Proxy Manager

Nginx Proxy Manager deployment: Docker Compose + reverse proxy

GUI reverse-proxy manager on top of Nginx with one-click Let's Encrypt certificates.

In short: GUI reverse-proxy manager on top of Nginx with one-click Let's Encrypt certificates. This page gives a Docker Compose deployment based on the official source; data lives in /opt/nginx-proxy-manager and the web port is bound to 127.0.0.1 behind Nginx / Caddy.

Server
No official minimum; our generic suggestion: 1 vCPU / 1 GB RAM and up (not an official figure)
Ports
80 (HTTP (public)); 443 (HTTPS (public)); 81 (Admin UI)
CPU arch
Images published for amd64 / arm64 (image manifests checked 2026-11-14)
Install
curl -fsSL https://deploy.cc/i/nginx-proxy-manager.sh -o nginx-proxy-manager.sh && sudo bash nginx-proxy-manager.sh
Official source
nginxproxymanager.com/setup
Last verified
2026-11-13 · Run-tested
Dev & opsRun-testedWebSocket1 vCPU / 1 GB RAM and up

Overview & official links

About
GUI reverse-proxy manager on top of Nginx with one-click Let's Encrypt certificates.
Repository
github.com/NginxProxyManager/nginx-proxy-manager
Docs
nginxproxymanager.com/guide
Deploy source
nginxproxymanager.com/setup checked 2026-11-13
Verification
Run-tested Started with our script on a test machine and answered over HTTP · HTTP 200 · 2026-11-13
Ports
80 HTTP (public)
443 HTTPS (public)
81 Admin UI

Server requirements

Official requirements

The official docs give no explicit minimum.

Suggested VPS size

1 vCPU / 1 GB RAM and up, Debian 12 / Ubuntu 24.04 with Docker.
Generic suggestion, not official.

VPS recommendation slot (reserved, inactive)

Option 1: install script (optional)

Writes the compose below to /opt/nginx-proxy-manager and starts it; check the sha256 first. What the script does

curl -fsSL https://deploy.cc/i/nginx-proxy-manager.sh -o nginx-proxy-manager.sh
sha256sum nginx-proxy-manager.sh   # 9f3772362a772e292a41f85ec2a99fbdc3aaec31ee336d929674ef029f179e3d
less nginx-proxy-manager.sh
sudo bash nginx-proxy-manager.sh

sha256: 9f3772362a772e292a41f85ec2a99fbdc3aaec31ee336d929674ef029f179e3d · Checks ports: 80/tcp 81/tcp 443/tcp

Option 2: docker-compose by hand

Save to /opt/nginx-proxy-manager, replace __GEN_…__ in .env, then docker compose up -d.

Changes vs. the official example: listed (in Chinese) in the header comments of the file below — typically ports bound to 127.0.0.1, named volumes replaced by bind mounts under /opt/nginx-proxy-manager, example secrets moved to .env.
/opt/nginx-proxy-manager/docker-compose.ymlsource · raw
# Nginx Proxy Manager — docker-compose.yml (deploy.cc)
# 官方来源 / Official source: https://nginxproxymanager.com/setup/
# 核对日期 / Checked: 2026-11-13
# 改动: 镜像标签用 latest(官方写法为 {{VERSION}} 占位)
# 改动: 管理端口 81 只监听 127.0.0.1
# 改动: 时区从 .env 读取
services:
  app:
    image: jc21/nginx-proxy-manager:latest
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "127.0.0.1:81:81"
    environment:
      TZ: ${TZ:-Asia/Shanghai}
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  • It is itself the reverse proxy and takes ports 80/443.
  • Admin port 81 is bound to 127.0.0.1 here; use an SSH tunnel.

Environment variables

/opt/nginx-proxy-manager/.envraw
# Nginx Proxy Manager — deploy.cc .env 模板 / template
# __GEN_*__ 由一键脚本替换为随机值;手动部署请自己改掉。
TZ=Asia/Shanghai

Update, backup & uninstall

Update
cd /opt/nginx-proxy-manager
docker compose pull
docker compose up -d
docker image prune -f

Back up and read the release notes before major upgrades.

Backup (whole directory incl. data and .env)
cd /opt/nginx-proxy-manager && docker compose stop
tar czf /root/nginx-proxy-manager-$(date +%F).tar.gz -C /opt nginx-proxy-manager
cd /opt/nginx-proxy-manager && docker compose start
Uninstall
cd /opt/nginx-proxy-manager && docker compose down
# The next line deletes all data permanently — back up first
# rm -rf /opt/nginx-proxy-manager

FAQ

What is Nginx Proxy Manager?

GUI reverse-proxy manager on top of Nginx with one-click Let's Encrypt certificates. Repository: https://github.com/NginxProxyManager/nginx-proxy-manager

What server do I need for Nginx Proxy Manager?

No official minimum; our generic suggestion: 1 vCPU / 1 GB RAM and up (not an official figure)

Which ports does Nginx Proxy Manager use?

80 (HTTP (public)); 443 (HTTPS (public)); 81 (Admin UI)

Does Nginx Proxy Manager run on ARM (arm64) servers?

Yes. Every image in this compose (jc21/nginx-proxy-manager:latest) publishes an arm64 build (manifests checked 2026-11-14).

How do I install Nginx Proxy Manager with one command?

As root on a Linux server: curl -fsSL https://deploy.cc/i/nginx-proxy-manager.sh -o nginx-proxy-manager.sh && sudo bash nginx-proxy-manager.sh. It installs Docker via the official get.docker.com if missing, writes files to /opt/nginx-proxy-manager with random secrets and runs docker compose up -d; it stops instead of overwriting when the directory exists or a port is taken.

Where is Nginx Proxy Manager's data and how do I back it up?

All data and .env live in /opt/nginx-proxy-manager (bind mounts). Back up with: cd /opt/nginx-proxy-manager && docker compose stop && tar czf /root/nginx-proxy-manager-$(date +%F).tar.gz -C /opt nginx-proxy-manager && docker compose start

How do I update Nginx Proxy Manager?

cd /opt/nginx-proxy-manager && docker compose pull && docker compose up -d && docker image prune -f. Back up and read the release notes before major upgrades.

How does this compose differ from the official example?

Source: https://nginxproxymanager.com/setup/. Our changes are listed (in Chinese) in the file header; typically ports bound to 127.0.0.1, named volumes replaced by bind mounts and example secrets moved to .env.

Plain-text version (for copying or AI tools): /en/apps/nginx-proxy-manager.md

Related apps