microsoft / RockPaperScissorsLizardSpock

Rock, Paper, Scissors, Lizard, Spock - Sample Application
MIT License
588 stars 289 forks source link

Running app locally with docker desktop #31

Closed emile-cronje closed 4 years ago

emile-cronje commented 4 years ago

Good day

I have problems running the app locally with docker desktop.

I cloned the repository, opened in VS 2019, built the app, everything good. I have RPSLS.Web as startup project and press F5. I have docker desktop running, but get the following message in the browser: Could not reconnect to the server. Have fun defeating our bot with your language of choice!

In the output window I get the message: fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit '9bTXHbA9Q5vH-LPXg4wBw0SEuZMcT71Huwvutl0nqBc'. System.InvalidOperationException: Cannot consume scoped service 'RPSLS.Web.Clients.IConfigurationManagerClient' from singleton 'Microsoft.Extensions.Options.IOptions`1[RPSLS.Web.Config.MultiplayerSettings]'.

What am I missing? Regards

dsrodenas commented 4 years ago

Hello,

From Visual Studio the startup project must be docker-compose. The docker-compose will build and run all the projects, some of them (PHP, Java, Node...) are not included in the Visual Studio solution but are in the Docker-compose files. So setting as startup project docker compose and pressing F5 should work.

image

I hope it helps.

Bet regards.

emile-cronje commented 4 years ago

Hello David

Thank you, problem solved.

Regards