New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for docker labels #109
Comments
Hello @seanfarley. Yes, this is definitely a good idea, and in fact it could be a part of a more general feature that I would add. You mention traefik and it is in fact one of the very good projects from which I would like to find some inspirations. Specifically here I am thinking of a way to define parts of DNSroboCert configuration as labels directly on the dockers. I was thinking of a per Docker certificate configuration, and automated injection of the certificates as volumes, but autorestart/autocmd features would be great. I do not know when I will have the time to do it,but it is on my wishlist. |
Ah, yeah, that'd be really cool. I'm not sure how to implement the grander feature but I could probably take a stab at the simple version ( |
In my secenario we run docker swarm and traefik, but we don't want to use traefik for manging the certs.
I am considering developing something like:
Here is what the traefik config file output needs to look like:
Traefik can be configured to watch a config directory for its dynamic config, rather than a single config file and in which case it might be possible to output multiple individual traefik config yaml files, per individual cert and traefik would merge this config together. e.g in traefik providers:
file:
directory: /path/to/dynamic/conf
watch: true Now, asuming this config directory is backed by a volume (like a docker e.g
If this works this would make the agents job a bit easier as it doesn't have to update within a traefik config, it can just locate the traefik config in this directory by certificate name - create it if it doesn't exist and overwrite it if it does. Traefik watches these files for changes. So in theory the flow would be:
If anyone has done any work on this kind of thing or has any ideas please let me know. |
Thanks for this project! I use it and have been really happy with it so far :-)
I was wondering if support could be added for
autorestart
to restart containers that contain a particular label? Hardcoding a list of containers is a bit fragile sometimes and I think it'd be a bit more robust in terms of implementation.(this is basically exactly what traefik does)
The text was updated successfully, but these errors were encountered: