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.

168 lines
7.6 KiB

  1. version: '3.3'
  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. - AzureServiceBusEnabled=False
  22. ports:
  23. - "5103:5103"
  24. catalog.api:
  25. environment:
  26. - ASPNETCORE_ENVIRONMENT=Production
  27. - ASPNETCORE_URLS=http://0.0.0.0:80
  28. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  29. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG:-http://localhost:5101/api/v1/catalog/items/[0]/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
  30. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  31. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  32. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  33. - UseCustomizationData=True
  34. - AzureServiceBusEnabled=False
  35. - AzureStorageEnabled=False
  36. ports:
  37. - "5101:80"
  38. identity.api:
  39. environment:
  40. - ASPNETCORE_ENVIRONMENT=Production
  41. - ASPNETCORE_URLS=http://0.0.0.0:80
  42. - SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
  43. - XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
  44. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  45. - MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your local dev-machine firewall at range 5100-5110.
  46. - LocationApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5109
  47. - MarketingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
  48. - BasketApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  49. - OrderingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  50. - UseCustomizationData=True
  51. ports:
  52. - "5105:80"
  53. ordering.api:
  54. environment:
  55. - ASPNETCORE_ENVIRONMENT=Production
  56. - ASPNETCORE_URLS=http://0.0.0.0:80
  57. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  58. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  59. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  60. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  61. - UseCustomizationData=True
  62. - AzureServiceBusEnabled=False
  63. ports:
  64. - "5102:80"
  65. webspa:
  66. environment:
  67. - ASPNETCORE_ENVIRONMENT=Production
  68. - ASPNETCORE_URLS=http://0.0.0.0
  69. - CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
  70. - OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  71. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5110.
  72. - BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  73. - MarketingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
  74. - CatalogUrlHC=http://catalog.api/hc
  75. - OrderingUrlHC=http://ordering.api/hc
  76. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  77. - BasketUrlHC=http://basket.api/hc
  78. - MarketingUrlHC=http://marketing.api/hc
  79. - UseCustomizationData=True
  80. ports:
  81. - "5104:80"
  82. webmvc:
  83. environment:
  84. - ASPNETCORE_ENVIRONMENT=Production
  85. - ASPNETCORE_URLS=http://0.0.0.0:80
  86. - CatalogUrl=http://catalog.api
  87. - OrderingUrl=http://ordering.api
  88. - 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.
  89. - BasketUrl=http://basket.api
  90. - MarketingUrl=http://marketing.api
  91. - UseCustomizationData=True #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  92. ports:
  93. - "5100:80"
  94. marketing.api:
  95. environment:
  96. - ASPNETCORE_ENVIRONMENT=Production
  97. - ASPNETCORE_URLS=http://0.0.0.0:80
  98. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  99. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  100. - MongoDatabase=MarketingDb
  101. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  102. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  103. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  104. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  105. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  106. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  107. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  108. - AzureServiceBusEnabled=False
  109. - AzureStorageEnabled=False
  110. ports:
  111. - "5110:80"
  112. sql.data:
  113. environment:
  114. - MSSQL_SA_PASSWORD=Pass@word
  115. - ACCEPT_EULA=Y
  116. ports:
  117. - "5433:1433"
  118. nosql.data:
  119. ports:
  120. - "27017:27017"
  121. webstatus:
  122. environment:
  123. - ASPNETCORE_ENVIRONMENT=Production
  124. - ASPNETCORE_URLS=http://0.0.0.0:80
  125. - CatalogUrl=http://catalog.api/hc
  126. - OrderingUrl=http://ordering.api/hc
  127. - BasketUrl=http://basket.api/hc
  128. - IdentityUrl=http://identity.api/hc
  129. - LocationsUrl=http://locations.api/hc
  130. - MarketingUrl=http://marketing.api/hc
  131. - mvc=http://webmvc/hc
  132. - spa=http://webspa/hc
  133. ports:
  134. - "5107:80"
  135. payment.api:
  136. environment:
  137. - ASPNETCORE_ENVIRONMENT=Production
  138. - ASPNETCORE_URLS=http://0.0.0.0:5108
  139. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  140. - AzureServiceBusEnabled=False
  141. ports:
  142. - "5108:80"
  143. locations.api:
  144. environment:
  145. - ASPNETCORE_ENVIRONMENT=Production
  146. - ASPNETCORE_URLS=http://0.0.0.0:80
  147. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  148. - Database=LocationsDb
  149. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  150. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  151. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  152. - AzureServiceBusEnabled=False
  153. ports:
  154. - "5109:80"