Public | Automated Build

Last pushed: 2 years ago
Short Description
Test repo
Full Description


Automated caddy proxy for Docker containers using docker-gen.


Start any containers you want proxied with an env var just like nginx-proxy:

$ docker run -e  ...

If you want the container protected by HTTP Basic Authentication add a BASIC_AUTH env var with the path to protect (i.e. /), username, and password:

$ docker run -e -e BASIC_AUTH="/ myname mysecrect" ...

Then to run it:

$ docker run -v /var/run/docker.sock:/tmp/docker.sock:ro -v /data/.caddy:/root/.caddy --name caddy-proxy -p 80:80 -p 443:443 -e CADDY_OPTIONS="--email" -d blackglory/caddy-proxy:0.2.0

When you launch new (or stop) containers caddy-proxy will reload its configuration to make the new containers available.

Docker Pull Command
Source Repository