You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
7.4 KiB

  1. version: '2.1'
  2. # The Production docker-compose file has to have the external/real IPs or DNS names for the services
  3. # The ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
  4. # ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP=192.168.88.248
  5. # but values present in the environment vars at runtime will always override those defined inside the .env file
  6. # An external IP or DNS name has to be used when testing the Web apps and the Xamarin apps from remote machines/devices using the same WiFi, for instance.
  7. #
  8. # Set ASPNETCORE_ENVIRONMENT=Development to get errors while testing.
  9. #
  10. # You need to start it with the following CLI command:
  11. # docker-compose -f docker-compose-windows.yml -f docker-compose-windows.prod.yml up -d
  12. services:
  13. basket.api:
  14. environment:
  15. - ASPNETCORE_ENVIRONMENT=Production
  16. - ASPNETCORE_URLS=http://0.0.0.0:80
  17. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
  18. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  19. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  20. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  21. ports:
  22. - "5103:5103"
  23. catalog.api:
  24. environment:
  25. - ASPNETCORE_ENVIRONMENT=Production
  26. - ASPNETCORE_URLS=http://0.0.0.0:80
  27. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  28. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG} #Local: You need to open your local dev-machine firewall at range 5100-5110.
  29. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  30. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  31. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  32. - UseCustomizationData=True
  33. ports:
  34. - "5101:80"
  35. identity.api:
  36. environment:
  37. - ASPNETCORE_ENVIRONMENT=Production
  38. - ASPNETCORE_URLS=http://0.0.0.0:80
  39. - SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
  40. - XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
  41. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  42. - MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  43. - LocationApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5109
  44. - MarketingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
  45. - BasketApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  46. - OrderingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  47. - UseCustomizationData=True
  48. ports:
  49. - "5105:80"
  50. ordering.api:
  51. environment:
  52. - ASPNETCORE_ENVIRONMENT=Production
  53. - ASPNETCORE_URLS=http://0.0.0.0:80
  54. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  55. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  56. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  57. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  58. - UseCustomizationData=True
  59. ports:
  60. - "5102:80"
  61. webspa:
  62. environment:
  63. - ASPNETCORE_ENVIRONMENT=Production
  64. - ASPNETCORE_URLS=http://0.0.0.0
  65. - CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
  66. - OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  67. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5110.
  68. - BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  69. - MarketingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
  70. - CatalogUrlHC=http://catalog.api/hc
  71. - OrderingUrlHC=http://ordering.api/hc
  72. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  73. - BasketUrlHC=http://basket.api/hc
  74. - MarketingUrlHC=http://marketing.api/hc
  75. - UseCustomizationData=True
  76. ports:
  77. - "5104:80"
  78. webmvc:
  79. environment:
  80. - ASPNETCORE_ENVIRONMENT=Production
  81. - ASPNETCORE_URLS=http://0.0.0.0:80
  82. - CatalogUrl=http://catalog.api
  83. - OrderingUrl=http://ordering.api
  84. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  85. - BasketUrl=http://basket.api
  86. - MarketingUrl=http://marketing.api
  87. ports:
  88. - "5100:80"
  89. marketing.api:
  90. environment:
  91. - ASPNETCORE_ENVIRONMENT=Production
  92. - ASPNETCORE_URLS=http://0.0.0.0:80
  93. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  94. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  95. - MongoDatabase=MarketingDb
  96. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  97. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  98. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  99. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  100. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING}
  101. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  102. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  103. ports:
  104. - "5110:80"
  105. graceperiodmanager:
  106. environment:
  107. - ASPNETCORE_ENVIRONMENT=Production
  108. - ASPNETCORE_URLS=http://0.0.0.0:80
  109. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  110. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  111. sql.data:
  112. environment:
  113. - SA_PASSWORD=Pass@word
  114. - ACCEPT_EULA=Y
  115. ports:
  116. - "5433:1433"
  117. nosql.data:
  118. ports:
  119. - "27017:27017"
  120. webstatus:
  121. environment:
  122. - ASPNETCORE_ENVIRONMENT=Production
  123. - ASPNETCORE_URLS=http://0.0.0.0:80
  124. - CatalogUrl=http://catalog.api/hc
  125. - OrderingUrl=http://ordering.api/hc
  126. - BasketUrl=http://basket.api/hc
  127. - IdentityUrl=http://identity.api/hc
  128. - LocationsUrl=http://locations.api/hc
  129. - MarketingUrl=http://marketing.api/hc
  130. - mvc=http://webmvc/hc
  131. - spa=http://webspa/hc
  132. ports:
  133. - "5107:80"
  134. payment.api:
  135. environment:
  136. - ASPNETCORE_ENVIRONMENT=Production
  137. - ASPNETCORE_URLS=http://0.0.0.0:5108
  138. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  139. ports:
  140. - "5108:80"
  141. locations.api:
  142. environment:
  143. - ASPNETCORE_ENVIRONMENT=Production
  144. - ASPNETCORE_URLS=http://0.0.0.0:80
  145. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  146. - Database=LocationsDb
  147. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  148. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  149. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  150. ports:
  151. - "5109:80"