caddy-docker-proxy icon indicating copy to clipboard operation
caddy-docker-proxy copied to clipboard

Disable caddyfile generation for a container

Open josegonzalez opened this issue 3 years ago • 0 comments

I'm looking into integrating this repository into Dokku for container proxying. The initial setup is fairly straightforward, but one thing I want to allow folks to do is have the ability to set arbitrary container labels for caddyfile generation.

Container labels can (currently) be added via the following command:

# the app is node-js-app
# and the "phase" for the container options is any container generated during the "deploy" phase
dokku docker-options:add node-js-app deploy "--label caddy.encode=zstd gzip"

Container options in Dokku are applied to all container types, so in theory this would also apply to a worker container in addition to the web container we'd normally proxy.

My question is whether or not that would be sufficient for this repo to start tracking non-web containers? Ideally no, but it's not clear from the documentation what "enables" the caddy integration. If it does enable it, is there a way to disable this for a given container? Maybe a label like caddy=disable or similar?

josegonzalez avatar Aug 10 '22 09:08 josegonzalez