Caddy as dynamic reverse proxy for docker


(Ze Pouët) #1

Hello,

I would like to know if it exists a such plugin : listening docker events api and so creating route to access docker containers ?

I would be interested to do it else.

Thanks


(Haz Cod) #2

You could create something using docker-gen and caddy graceful restarts.


(Ze Pouët) #3

Thanks for information. I found

https://github.com/BlackGlory/caddy-proxy which use docker-gen

I will try it. Thanks


(Matt Holt) #4

I’m not sure if this is similar to what you want, but maybe you’d be interested in https://github.com/mholt/caddy/pull/564 ?


(Nikita Sobolev) #5

I have created a tool called caddy-gen, it is a mix of docker-gen and caddy (with graceful restarts).

Check it out: https://github.com/wemake-services/caddy-gen