roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

[Docker Desktop] Container domain names

Open flostellbrink opened this issue 1 year ago • 1 comments

Tell us about your request Each container should have its own domain name, like <service>.<project>.docker.local or <container>.docker.local. These domain names should also support https even if the underlying docker image is http only. Orbstack has this feature.

Which service(s) is this request for? Docker Desktop.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Using raw ports during development can be confusing when switching between projects. Setting up https can be tedious and is often required for developing authentication integrations. Having localhost with a non 80 or 443 port also tends to make things harder to test.

Are you currently working around the issue? I use ngrok with docker desktop to get a real domain name with https. Previously I have been using orbstack, which has this feature. I have also seen traefik being used as a reverse proxy in compose projects.

flostellbrink avatar May 20 '24 13:05 flostellbrink

Another use case, is when using a local authentication server (e.g. KeyCloak) and need to provide the OICD issuer url. Letting each container be reachable by a (local) domain from the different containers and the host machine would be very useful. I workaround, is to use socat (or similar) to redirect localhost:<port> (as seen by the host) to the appropriate authentication container inside each container that need to validate a claim.

sindre-nistad avatar Nov 26 '24 15:11 sindre-nistad