# Self-host Nginx UI

> A web interface to edit nginx configuration, certificates and sites. This runs its own nginx inside the container and stores its config in volumes.

- Page: https://levelrail.com/templates/nginx-ui/
- JSON: https://levelrail.com/templates/nginx-ui.json
- Category: Developer Tools
- Licence: AGPL-3.0-only (Network copyleft (AGPL) license)
- Source: https://github.com/0xJacky/nginx-ui
- Upstream docs: https://nginxui.com/guide/getting-started.html

## Requirements
- Memory: about 128 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v3.0.1

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| nginx-ui | uozi/nginx-ui | v3.0.1 | 80 | nginx_config -> /etc/nginx; ui_config -> /etc/nginx-ui |

## Deploy

### CLI

```bash
levelrail-cli templates deploy nginx-ui --name my-nginx-ui
```

### API

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

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

## First run
1. Open the address and create the first administrator account in the setup wizard.

## Questions

### Can I deploy Nginx UI 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 UI, 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 uozi/nginx-ui:v3.0.1 is what you deploy there.

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