微服务:为什么示例eShopOnContaienr内有IdentityUrl和IdentityUrlExternal

时间:2018-07-23 04:21:12

标签: environment-variables microservices identityserver4

我正在查看docker.compose.override文件的eShopOnContainer。我不了解两个环境变量

.


  locations.api:
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_URLS=http://0.0.0.0:80
      - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
      - Database=LocationsDb
      - identityUrl=http://identity.api              #Local: You need to open your local dev-machine firewall at range 5100-5110. 
      - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105

我不确定IdentityUrl和IdentityUrlExternal。为Identity.api和IdentityUrlExternal的映像引用的identityUrl被赋予身份服务器的物理DNS。

为什么样本以这种方式定义,而不是仅使用identityUrl。

0 个答案:

没有答案