selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
nginx-proxy logo

Self-host nginx-proxy

1.11.6

Docker-aware Nginx proxy that configures itself

ReleaseOpen SourceMIT
docker run --detach --name nginx-proxy --publish 80:80 --volume /var/run/docker.sock:/tmp/docker.sock:ro nginxproxy/nginx-proxy:1.11
Updated3 months ago
LanguagePython
Setup difficultyEasy
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
Docker
nginxproxy/nginx-proxy
nginx-proxy screenshot 1nginx-proxy screenshot 2

What is nginx-proxy?

nginx-proxy alternatives

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

ZeroSSL

nginx-proxy

Test GitHub release nginx 1.31.6 Docker Image Size Docker stars Docker pulls

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.

How to install nginx-proxy

Install nginx-proxy with Docker

Environment variables
VIRTUAL_HOST, VIRTUAL_PORT, DEFAULT_HOST, HTTPS_METHOD, ENABLE_IPV6, HTTP_PORT, HTTPS_PORT
docker run --detach \
    --name nginx-proxy \
    --publish 80:80 \
    --volume /var/run/docker.sock:/tmp/docker.sock:ro \
    nginxproxy/nginx-proxy:1.11

Proxied containers must expose their port and share a Docker network with the proxy.

How to configure nginx-proxy

  • VIRTUAL_HOSTno default value
  • VIRTUAL_PORTno default value
  • VIRTUAL_PATH/
  • VIRTUAL_DESTempty string
  • DEFAULT_HOSTno default value

nginx-proxy releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Reverse Proxy

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…