3 ms·
> Does Traefik autodetect the containers from the Docker socket? Yes, it can do that. you can put annotations(? tags? I forget what the docker terminology is)
by detaro 5y ago
> Does Traefik autodetect the containers from the Docker socket?
Yes, it can do that. you can put annotations(? tags? I forget what the docker terminology is) on containers that Traefik reads so it knows "expose port xyz on this container as https://example.com https://example.com".
- stavros 5y agoHmm very interesting, I'll need to play with that and add annotation support on Harbormaster so it works out of the box, thanks!
- andrelaszlo 5y agoThat would be really cool. I might mess around with it around Christmas. If I run into any rough edges around labels (Traefik uses labels like `traefik.enable=true` https://doc.traefik.io/traefik/reference/dynamic-configuration/docker/ https://doc.traefik.io/traefik/reference/dynamic-configurati...) I'll submit an issue or PR.
- stavros 5y agoExcellent, thanks! I think a label config item should be enough to get Traefik working, but I'll know more after I look at it.