# Self-host Nginx Proxy Manager

> A web UI for managing Nginx reverse-proxy hosts, redirects, and Let's Encrypt certificates.

- Page: https://levelrail.com/templates/nginx-proxy-manager/
- JSON: https://levelrail.com/templates/nginx-proxy-manager.json
- Category: Infrastructure
- Licence: MIT (Permissive license)
- Source: https://github.com/NginxProxyManager/nginx-proxy-manager
- Upstream docs: https://nginxproxymanager.com/guide/

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 2.12.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| npm | jc21/nginx-proxy-manager | 2.12.3 | 81 | npm_data -> /data; npm_letsencrypt -> /etc/letsencrypt |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| npm | DB_SQLITE_FILE | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy nginx-proxy-manager --name my-nginx-proxy-manager
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/nginx-proxy-manager/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Nginx Proxy Manager on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Nginx Proxy Manager, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image jc21/nginx-proxy-manager:2.12.3 is what you deploy there.

Self-host Nginx Proxy Manager, Nginx Proxy Manager docker compose file, deploy Nginx Proxy Manager on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
