Docker Nginx Automation

Automatic Nginx Configuration
for Docker Containers

Automatically create nginx reverse proxy configurations with SSL certificates. No manual nginx setup required for Docker containers.

Quick Setup

Get nginx-proxy running in under 2 minutes

1

Setup nginx-proxy

docker pull mesudip/nginx-proxy
docker network create frontend
docker run --network frontend \
           --name nginx-proxy \
           -v /var/run/docker.sock:/var/run/docker.sock:ro \
           -v /etc/ssl:/etc/ssl \
           -v /etc/nginx/dhparam:/etc/nginx/dhparam \
           -p 80:80 \
           -p 443:443 \
           -d --restart always mesudip/nginx-proxy
2

Configure Your Service

Set VIRTUAL_HOST environment variable on any container:

WordPress Example:

docker run --network frontend \
           --name wordpress-server \
           -e VIRTUAL_HOST="wordpress.example.com" \
           wordpress

Docker Registry Example:

docker run --network frontend \
           --name docker-registry \
           -e VIRTUAL_HOST='https://registry.example.com/v2 -> /v2; client_max_body_size 2g' \
           -e PROXY_BASIC_AUTH="registry.example.com -> user1:password,user2:password2" \
           registry:2
That's it! Your service is now live with HTTPS

Why Choose nginx-proxy?

Powerful features that make Docker deployments effortless

Zero Config Required

One environment variable = live website. No nginx.conf files to manage.

Automatic HTTPS

Let's Encrypt SSL certificates generated and renewed automatically.

Wildcard Domains

Support for wildcard certificates using Cloudflare API integration.

Basic Authentication

Built-in HTTP basic auth protection for sensitive applications.

Multiple Containers

Map unlimited Docker containers to different locations on same server.

Custom Configurations

Add manual nginx configurations when you need advanced customization.

Docker DevOps Simplified

Transform your Docker workflow with automated nginx management

One Environment Variable = Live Website

Set VIRTUAL_HOST and your container is instantly accessible via custom domain with HTTPS.

No More nginx.conf Files

Forget complex nginx configurations. Everything is automated based on container metadata.

Instant HTTPS Everywhere

SSL certificates are automatically requested, installed, and renewed for all your domains.

Unlimited Docker Apps on One Server

Run dozens of containerized applications on a single server with automatic routing.

Zero Downtime Updates

nginx configuration updates happen automatically without service interruption.

Production-Ready Security

Built-in security headers, SSL/TLS best practices, and authentication options.

Ready to Simplify Your Docker Deployments?

Join thousands of developers using nginx-proxy for effortless container management