Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blazor WASM] Debugging in docker-compose - configure clientport #49795

Closed
1 task done
Bjego opened this issue Aug 2, 2023 · 3 comments
Closed
1 task done

[Blazor WASM] Debugging in docker-compose - configure clientport #49795

Bjego opened this issue Aug 2, 2023 · 3 comments
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@Bjego
Copy link

Bjego commented Aug 2, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Hi Blazor team,
I tried to scaffold my blazor environment via docker-compose, so that I can scaffold the blazor client, server, databases and also API mocks via docker-compose in my development environment (Visual Studio 2022).

As I added container-orchestrator support via the VS gui - on the first look everything worked great. Dockerfiles where created, a simple dockercompose with just my server app appeared and everything worked fine.

I tried to fix the clients (webpage) port to a known port, to register that in my oauth server (as I did with the windows debugging as well), but I had no luck.

And when I restart debugging the client port is chaning all the time.

Is there any change to set a poperty in the dev-server to fix the client to spin up on a given port like 8080 ?

Describe the solution you'd like

I'd like a simple config / environment setting to force the blazor server to spin up the web client on a specific port in debugging scenarios on docker-compose.

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Aug 2, 2023
@javiercn
Copy link
Member

javiercn commented Aug 2, 2023

@Bjego thanks for contacting us.

This is likely a dupe of #37565, please upvote that issue instead.

@javiercn javiercn closed this as completed Aug 2, 2023
@javiercn javiercn added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Aug 2, 2023
@ghost ghost added the Status: Resolved label Aug 2, 2023
@Bjego
Copy link
Author

Bjego commented Aug 2, 2023 via email

@Bjego
Copy link
Author

Bjego commented Aug 3, 2023

@javiercn I mean this feature from the normal Visual Studio: https://learn.microsoft.com/en-us/visualstudio/containers/tutorial-multicontainer?view=vs-2022.

Could you please validate and may reopen the issue?

Maybe I'm just missing a hidden config value - to force the blazor devserver to start the webui on a specific port.

Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Sep 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants