-
Notifications
You must be signed in to change notification settings - Fork 208
Description
// there are so many repositories, that I don't know where I should put this issue ;)
I created the whole infrastructure by docker compose and tried to run the DShop.Api. And I encountered an error: An exception of type 'RabbitMQ.Client.Exceptions.BrokerUnreachableException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'None of the specified endpoints were reachable'
I investigated that issue and found out that application uses appsettings.development.json file, where there is RabbitMQ configuration - "hostnames": [ "rabbitmq" ]
Unfortunately all resources are created by docker compose on localhost (there is no mentioning a different host), and application cannot connect to RabbitMQ which causes error.
When i hacked RabbitMQ configuration's resolving by rawRabbitConfiguration.Hostnames[0] = "localhost"; line in DShop.Common application started without problem.
My question - is this my problem with running this repo or did you make a mistake with configuration with RabbitMQ?