How does nginx-proxy find my containers?
It runs nginx together with docker-gen, which generates the reverse proxy configuration and reloads nginx whenever containers start or stop.
Let nginx and docker-gen write reverse proxy configs for your other Docker containers automatically.
Compare nginx-proxy with other reverse proxies. Add or remove apps to see how they differ.
| Requirement | nginx-proxy | ||||
|---|---|---|---|---|---|
| Price | Free | Free | Free | Free | Free |
| Licence | MIT | Apache-2.0 | MIT | Apache-2.0 | MIT |
| Web UI | No | No | Yes | No | Yes |
| Docker Containers | 1 (app only) | 1 (app only) | 1 (app only) | 1 (app only) | 1 (app only) |
| Database | None | none | SQLite | none | none |
| Architecture | x86 + ARM | x86 + ARM | x86 + ARM | x86 + ARM | x86 + ARM |
| Tech stack | nginx | Go | Node | Rust | Go |
| Docker | Yes | Yes | Yes | Yes | Yes |
| Linux package | – | Yes | – | Yes | Yes |
| Windows | – | Yes | – | – | Yes |
| macOS | – | Yes | – | – | Yes |
It runs nginx together with docker-gen, which generates the reverse proxy configuration and reloads nginx whenever containers start or stop.
Start the container with a VIRTUAL_HOST environment variable set to the hostname you want, for example subdomain.yourdomain.com. nginx-proxy then routes that name to the container.
docker-gen needs to watch Docker for container changes, so the container mounts /var/run/docker.sock, read-only in the project's example. Treat access to that socket as sensitive.
The example publishes port 80. See the project documentation for HTTPS and other options.
Run a web server and reverse proxy for your homelab apps, with HTTPS that sets itself up through Let's Encrypt.
Manage Nginx reverse proxy hosts and free Let's Encrypt SSL certificates from a FOSS web interface.
Reach services on your home network from anywhere without opening ports. A small connector beside them holds a WireGuard tunnel back to a Pangolin reverse proxy, which puts a login and per-user rules in front of each app. Pangolin can also hand out VPN-style access to whole hosts and IP ranges.
Pingclair reads your homelab sites from a Caddyfile-style config and serves them over HTTP/1.1, HTTP/2 and HTTP/3. It gets public HTTPS certificates once the hostname points at the box and ports 80 and 443 are open to the internet, or issues them from its own certificate authority. The whole reverse proxy is a single Linux binary built on Cloudflare Pingora.
Discover Docker containers and route to them automatically with a FOSS reverse proxy and load balancer, Let's Encrypt certificates included.