Self-host nginx-proxy
1.11.6Docker-aware Nginx proxy that configures itself
docker run --detach --name nginx-proxy --publish 80:80 --volume /var/run/docker.sock:/tmp/docker.sock:ro nginxproxy/nginx-proxy:1.11- Stars
- 19 937
- Ports
- 80 (HTTP traffic (default HTTP_PORT)), 443 (HTTPS traffic (default HTTPS_PORT; also UDP when HTTP/3 is used))
- Requires
- Docker
nginxproxy/nginx-proxyWhat is nginx-proxy?
nginx-proxy is an automated reverse proxy for Docker: it runs Nginx together with docker-gen in one container, watches the Docker socket and regenerates the Nginx configuration every time containers start or stop. Each proxied container just publishes an exposed port, shares a network with the proxy and sets environment variables such as VIRTUAL_HOST, VIRTUAL_PORT, VIRTUAL_PATH or VIRTUAL_PROTO, so requests are routed to the matching container without touching Nginx config by hand. It supports per-host SSL certificates (single, wildcard and SAN names), automatic HTTP-to-HTTPS redirection with HSTS, basic auth through htpasswd files, mTLS client-certificate verification, selectable Mozilla and AWS TLS policies, load balancing across identical VIRTUAL_HOST containers, and optional HTTP/3 and IPv6 listening. Operators can add custom Nginx configuration on a proxy-wide or per-virtual-host basis through mounted files, enable a JSON debug endpoint, and choose JSON access logs. Images are published on Docker Hub as nginxproxy/nginx-proxy in Debian and Alpine flavours (plus a docker-gen-only variant for running generation and Nginx in two separate containers), and the project also ships a documented Docker Compose setup. The README warns against the unversioned latest/alpine/dockergen tags for production; versioned tags such as 1.11 should be pinned. The repository is MIT-licensed and maintained by ZeroSSL, with a detailed docs folder covering every environment variable and file path.
nginx-proxy alternatives
3proxySelf-hosted, open-source tiny proxy server: HTTP/HTTPS, SOCKS4/5, FTP, DNS and port mapping with ACLs, bandwidth limits and parent chaining.Compare3proxy with nginx-proxy
tlsproxySelf-hosted TLS termination proxy with auto Let's Encrypt, SSO (OIDC/SAML/Passkeys), and reverse proxy for multiple services on one port.Comparetlsproxy with nginx-proxy
nginx-uiSelf-hosted, open-source web UI for managing Nginx: edit configs, deploy Let's Encrypt certs, tail logs, watch stats and manage clusters, with AI and MCP.Comparenginx-ui with nginx-proxy
TraefikTraefik is a self-hosted, open-source reverse proxy that auto-discovers services from Docker, Kubernetes, and other orchestrators to route traffic without manual config.CompareTraefik with nginx-proxy
SWAG (Secure Web Application Gateway)Self-hosted Nginx reverse proxy with automatic SSL certificates from Let's Encrypt or ZeroSSL. Includes Fail2ban intrusion prevention and reverse proxy configurations.CompareSWAG (Secure Web Application Gateway) with nginx-proxy
Vouch-ProxyOpen-source, self-hosted SSO proxy that fronts Nginx sites with OAuth/OIDC logins from Google, GitHub, Okta and any OpenID Connect IdP.CompareVouch-Proxy with nginx-proxy
godoxyHigh-performance reverse proxy and container orchestrator for self-hostersComparegodoxy with nginx-proxy
DockTailOpen-source, self-hosted Go agent that watches Docker labels and publishes containers as native Tailscale Services, with HTTPS, TCP, PROXY protocol and Funnel support.CompareDockTail with nginx-proxy
Should you self-host nginx-proxy?
nginx-proxy scores 75/100 on selfhost.directory (how scoring works) and ranks #3 of 23 in Reverse Proxy. It has 19 937 GitHub stars, +15 in the last 30 days.
It shipped 11 stable releases in the past year. The latest, 1.11.6, came out on 16 July 2026. New versions land roughly every 2 weeks.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Traefik (86/100, 65 498 stars). It scores higher overall, so compare the two before you pick. See nginx-proxy vs Traefik side by side.
Features
- ACME HTTP challenge support
- Automated reverse proxy configuration
- Automatic HTTPS redirect with HSTS
- Basic Authentication
- Custom Nginx configuration via mounted files
- Debug endpoint
- HTTP/2 and HTTP/3
- IPv6 Support
- JSON access logs
- Load balancing across containers
- mTLS client certificate authentication
- Multi-port routing
- Path-based Routing
- SSL/TLS Termination
- Virtual host routing
nginx-proxy README
nginx-proxy sets up a container running nginx and docker-gen. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
More in Reverse Proxy
Nginx Proxy ManagerOpen-source, self-hosted Docker reverse proxy manager with a web admin UI, Let's Encrypt SSL, and SQLite, MySQL or Postgres backends.
Nginx-Reverse-EmbySelf-hosted Go reverse proxy with HTTP/HTTPS and TCP/UDP forwarding, auto ACME certs, multi-node agents, Relay tunnels, and traffic quotas — managed via web UI.
nginx-uiSelf-hosted, open-source web UI for managing Nginx: edit configs, deploy Let's Encrypt certs, tail logs, watch stats and manage clusters, with AI and MCP.
NPMplusNPMplus is an open-source fork of nginx-proxy-manager offering hardened TLS, HTTP/3 (QUIC), crowdsec integration, and external authentication provider support.
NPS EnhancedSelf-hosted NAT traversal and reverse proxy exposing internal services via multiple protocols with a web dashboard.
OAuth2 ProxyOpen-source, self-hosted auth proxy that puts OAuth2/OIDC sign-in in front of web apps, with email/domain/group checks and Redis sessions.
openresty-managerOpenResty Manager is a self-hosted web control panel for OpenResty with reverse proxy, free SSL, host terminal, file manager, Docker app store, and multi-node CDN.
PangolinSelf-hosted, open-source SASE stack combining a WireGuard zero-trust VPN, identity-aware reverse proxy, PAM and an AI gateway; the AGPL Community Edition is free.
PomeriumOpen-source self-hosted identity-aware reverse proxy that gates private web apps, SSH and TCP services through OIDC sign-in and per-request access policy.
public-websites-dockerA Docker Compose guide for self-hosting static sites with Traefik, Matomo analytics, and remark42 comments — all with automatic Let's Encrypt TLS.
rustunnelrustunnel is a self-hosted, open-source tunnel server in Rust exposing local services via encrypted WebSocket. Free managed cloud with pay-as-you-go billing and MCP.
SafeLineSafeLine is an open-source, self-hosted WAF protecting web apps from SQL injection, XSS, and DDoS via intelligent semantic analysis. Runs as a Docker reverse proxy.


0 comments