[Blazor WASM] Debugging in docker-compose - configure clientport #49795
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
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
The text was updated successfully, but these errors were encountered: