Appsetting.docker.json


#1

Hi,

May I know how to set the http:localhost:8500 to http://consul:8500 in appsetting.docker.json as shown in the image below?

Thanks


#2

Hi,
Simply set the desired value in appsettings.docker.json file and make sure that you start app using docker environment, which can be done e.g. via editing launchSettings.json -> ASPNETCORE_ENVIRONMENT variable.


#3

Hi,

It’s working! Thanks for your sharing. Appreciate your effort. It really helpful to me.