How does Kitematic choose which port to show as “view in browser”?
I noticed that the Ghost docker image has a “View in browser” option but it is not doing anything special in the Dockerfile: https://github.com/dockerfile/ghost/blob/master/Dockerfile#L37
The app can maybe access each exposed port and see which one returns html content. If there are more than one then it can provide multiple buttons or something.
I’d really love to see a “WEB_PREVIEW” environment variable for this setting.
In my own case, I’ve got the reverse proxy running jwilder/nginx-proxy which I use to assign multiple web-containers to different host names. Being able to add “WEB_PREVIEW” url as an environment variable would be helpful.