3 ms·
Like traefik? https://doc.traefik.io/traefik/providers/docker/ https://doc.traefik.io/traefik/providers/docker/
by martontoth 4y ago
Like traefik? https://doc.traefik.io/traefik/providers/docker/ https://doc.traefik.io/traefik/providers/docker/
- fuzzy2 4y agoWhile this can be achieved using Traefik, it requires some creative combinations of static + dynamic configuration to get my_container.example.com with HTTPS and HTTP → HTTPS redirects and Let’s Encrypt. The container labels are a PITA. I’m not sure there’s an easier solution though.
- Shish2k 4y agoMy setup does all of those things — HTTP->HTTPS redirect and Let’s Encrypt are handled in the global static config: https://gist.github.com/shish/f346a3102f5d690be2f64f6d1eb7d7db https://gist.github.com/shish/f346a3102f5d690be2f64f6d1eb7d7... And then only the per-container settings need to be set in the dynamic config using container labels
- fuzzy2 4y agoAh, right. In the meantime, they improved the entry point config substantially. When v2 first started, there was no HTTPS redirect and no middleware config to be found on entry points. Never bothered to upgrade my config because it still works.
- jacooper 4y agoTry this, its pretty easy, but it depends on the docker socket. https://github.com/nginx-proxy/nginx-proxy https://github.com/nginx-proxy/nginx-proxy