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.

179 lines
8.1 KiB

  1. version: '3.4'
  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. ordering.backgroundtasks:
  66. environment:
  67. - ASPNETCORE_ENVIRONMENT=Production
  68. - ASPNETCORE_URLS=http://0.0.0.0:80
  69. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  70. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  71. - UseCustomizationData=True
  72. - AzureServiceBusEnabled=False
  73. ports:
  74. - "5111:80"
  75. webspa:
  76. environment:
  77. - ASPNETCORE_ENVIRONMENT=Production
  78. - ASPNETCORE_URLS=http://0.0.0.0
  79. - CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
  80. - OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  81. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5110.
  82. - BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  83. - MarketingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
  84. - CatalogUrlHC=http://catalog.api/hc
  85. - OrderingUrlHC=http://ordering.api/hc
  86. - IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
  87. - BasketUrlHC=http://basket.api/hc
  88. - MarketingUrlHC=http://marketing.api/hc
  89. - UseCustomizationData=True
  90. ports:
  91. - "5104:80"
  92. webmvc:
  93. environment:
  94. - ASPNETCORE_ENVIRONMENT=Production
  95. - ASPNETCORE_URLS=http://0.0.0.0:80
  96. - CatalogUrl=http://catalog.api
  97. - OrderingUrl=http://ordering.api
  98. - 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.
  99. - BasketUrl=http://basket.api
  100. - MarketingUrl=http://marketing.api
  101. - UseCustomizationData=True #Remote: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
  102. ports:
  103. - "5100:80"
  104. marketing.api:
  105. environment:
  106. - ASPNETCORE_ENVIRONMENT=Production
  107. - ASPNETCORE_URLS=http://0.0.0.0:80
  108. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  109. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  110. - MongoDatabase=MarketingDb
  111. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  112. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  113. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  114. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  115. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  116. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  117. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  118. - AzureServiceBusEnabled=False
  119. - AzureStorageEnabled=False
  120. ports:
  121. - "5110:80"
  122. sql.data:
  123. environment:
  124. - MSSQL_SA_PASSWORD=Pass@word
  125. - ACCEPT_EULA=Y
  126. ports:
  127. - "5433:1433"
  128. nosql.data:
  129. ports:
  130. - "27017:27017"
  131. webstatus:
  132. environment:
  133. - ASPNETCORE_ENVIRONMENT=Production
  134. - ASPNETCORE_URLS=http://0.0.0.0:80
  135. - CatalogUrl=http://catalog.api/hc
  136. - OrderingUrl=http://ordering.api/hc
  137. - BasketUrl=http://basket.api/hc
  138. - IdentityUrl=http://identity.api/hc
  139. - LocationsUrl=http://locations.api/hc
  140. - MarketingUrl=http://marketing.api/hc
  141. - mvc=http://webmvc/hc
  142. - spa=http://webspa/hc
  143. ports:
  144. - "5107:80"
  145. payment.api:
  146. environment:
  147. - ASPNETCORE_ENVIRONMENT=Production
  148. - ASPNETCORE_URLS=http://0.0.0.0:5108
  149. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  150. - AzureServiceBusEnabled=False
  151. ports:
  152. - "5108:80"
  153. locations.api:
  154. environment:
  155. - ASPNETCORE_ENVIRONMENT=Production
  156. - ASPNETCORE_URLS=http://0.0.0.0:80
  157. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  158. - Database=LocationsDb
  159. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  160. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  161. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  162. - AzureServiceBusEnabled=False
  163. ports:
  164. - "5109:80"