Get automated Nginx reverse proxy for Docker, ideal for startup founders, with 20k+ GitHub stars
19,871 stars3,051 forksPythonQuality 8/10Updated 6/27/2026100% free ยท open source
What it does
nginx-proxy automates the creation of Nginx reverse proxy configurations for Docker containers, allowing startup founders to easily manage and route traffic to their applications
Install / run
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
When to use it
โขYou have multiple Docker containers running different services and need a single entry point
โขYou want to automatically generate SSL certificates for your Docker applications
โขYou need to route traffic to specific containers based on custom conditions
Quick start
1Create a docker-compose.yml file with your application services
2Add environment variables to your services with the VIRTUAL_HOST and VIRTUAL_PORT values
3Run the nginx-proxy container with the command above
4Verify that the proxy is working by accessing your application through the proxy's IP address
5Customize the proxy configuration by creating a nginx.tmpl file or using environment variables
Ready-to-paste prompt
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro -e DEFAULT_SSL_CERT=example.com jwilder/nginx-proxy
Heads up: Make sure to mount the Docker socket (/var/run/docker.sock) as a read-only volume to the nginx-proxy container to avoid security issues
Saves to your device
Topics
docker
docker-gen
nginx
reverse-proxy
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.