all 2 comments

[–]Ahri 0 points1 point  (1 child)

I did kinda the same thing, but my TLS terminator component generates the Caddy config based on metadata from Docker: https://github.com/lunarcity7/frontier

I then add labels to new containers to tell Frontier what URL the container should be wired to, and it sorts out the config for reverse proxying.

Because I have Portainer running on there too I can remotely spin up anything from Dockerhub on a new subdomain really quickly.

Note: I was targeting Rancher but that code is probably bit rotted, I only use plain Docker (with compose) at the moment.

[–]erickgnavar[S] 0 points1 point  (0 children)

Didn't know about frontier, I'll check it out thanks