Skip to content

nginx-proxy

Docker reverse proxy that configures nginx automatically for your running containers

Permissive (OSI) · MIT

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

19,949

Last commit

today

Nov 2026

Repository age

12 years

since May 2014

Latest version

1.11.6

Jul 2026

Contributors

–

4 active in 90 days

Releases

10

last 12 months

Language

Python

nginx-proxy runs nginx together with docker-gen in one container. docker-gen watches Docker and writes the reverse proxy configuration, then reloads nginx whenever containers start or stop. You do not edit nginx config files by hand for each service.

To proxy a container, you set a VIRTUAL_HOST environment variable on it. Requests for that hostname are routed to the container, as long as it exposes a port and shares a Docker network with the proxy. The proxy needs read-only access to the Docker socket.

Images come in a Debian-based flavor, an Alpine-based flavor, and a dockergen variant meant for a setup with the official nginx image in a separate container. The project is written in Python, licensed under MIT, and has been developed since 2014. It is an open source alternative to hosted proxy and routing services, though no specific product is matched.

Who it's for

Homelab users running many Docker containers on one host

One environment variable per container publishes it under its own hostname.

Skip if: You run containers across several hosts or on Kubernetes.

Small teams hosting internal web apps on a single server

Config regenerates when containers change, so deployments need no manual proxy edits.

Skip if: You want a web UI to manage proxy hosts.

The problem it solves

Every new container you host behind nginx means another config block and a reload. That gets tedious and error-prone. nginx-proxy generates the config from container metadata instead.

Strengths

  • Config updates automatically when containers start and stop
  • Debian, Alpine and dockergen image variants
  • MIT license
  • Active, with 10 releases in the last year

Trade-offs

  • Needs access to the Docker socket, which is a security consideration
  • Port numbers in VIRTUAL_HOST are not supported
  • Proxied containers must share a Docker network with it
  • Pinning a version tag is recommended over latest

Self-host nginx-proxy

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

docker run --detach \
    --name nginx-proxy \
    --publish 80:80 \
    --volume /var/run/docker.sock:/tmp/docker.sock:ro \
    nginxproxy/nginx-proxy:1.11

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is nginx-proxy free?

Yes. It is MIT licensed.

How do I route a domain to a container?

Start the container with the VIRTUAL_HOST environment variable set to the hostname, and point DNS at the host.

Should I use the latest tag?

No. Latest tracks the main branch and can bring breaking changes, so pin a version such as 1.11.

Is there an Alpine image?

Yes. Use the image with the -alpine suffix.

Similar tools in Reverse proxies and web servers

nginx-ui

Reverse proxies and web servers

Web dashboard for managing Nginx configs, certificates and logs on your own servers

12k 931 yesterday Thriving AGPL-3.0

Algernon

Reverse proxies and web servers

Single-binary web server with Lua, Markdown and built-in database support

3k 149 yesterday Active BSD-3-Clause

Static Web Server

Reverse proxies and web servers

Small Rust web server for serving static files, with TLS, HTTP/2 and compression

2.4k 144 today Thriving Apache-2.0

Ferron

Reverse proxies and web servers

2.2k 101 today Active MIT

Zoraxy

Reverse proxies and web servers

5.6k 341 4 days ago Thriving AGPL-3.0