Custom fork of https://github.com/BlackGlory/caddy-proxy
487
Custom fork of BlackGlory/caddy-proxy
Start any containers you want proxied with an env var VIRTUAL_HOST=subdomain.youdomain.com just like nginx-proxy:
$ docker run -e VIRTUAL_HOST=foo.bar.com ...
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 VIRTUAL_HOST=foo.bar.com -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 [email protected]" -d frozzare/caddy-proxy:0.2.1
When you launch new (or stop) containers caddy-proxy will reload its configuration to make the new containers available.
Content type
Image
Digest
Size
25.5 MB
Last updated
about 9 years ago
docker pull frozzare/caddy-proxy