microsoft / DockerTools

Tools For Docker, including Visual Studio Provisioning and Publishing
Other
173 stars 26 forks source link

Failure to launch browser when using custom DockerServiceUrl #341

Open zorlaski opened 2 years ago

zorlaski commented 2 years ago

As part of my docker startup, I start a traefik proxy container that points a local url to one of my containers. in my docker-compose.dcproj file, I changed my <DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl> to <DockerServiceUrl>https://(LOCAL DEVELOPMENT URL)</DockerServiceUrl>

This local URL works fine when entered in the browser. However, Visual studio fails to open the url or even attempt to do so. My goal here is to have the browser still launch automatically, while using this new url. Thank you.

dbreshears commented 2 years ago

Somewhat related to #323. We just added a setting for 'launchBrowserTimeout' in Compose projects very recently. It will be in the 17.3 Preview 3 release.

ravipal commented 2 years ago

In addition to #323, If your service is not a web application, the url will not be launched. I opened an internal workitem to address this issue.

rboylesDev commented 9 months ago

Somewhat related to #323. We just added a setting for 'launchBrowserTimeout' in Compose projects very recently. It will be in the 17.3 Preview 3 release.

Was this ever actually added? I am running Visual Studio 17.7.4 and do not see the launch browser timeout listed or documented as an option on a Compose project.