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.

175 lines
8.0 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. - 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. graceperiodmanager:
  113. environment:
  114. - ASPNETCORE_ENVIRONMENT=Production
  115. - ASPNETCORE_URLS=http://0.0.0.0:80
  116. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  117. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  118. sql.data:
  119. environment:
  120. - SA_PASSWORD=Pass@word
  121. - ACCEPT_EULA=Y
  122. ports:
  123. - "5433:1433"
  124. nosql.data:
  125. ports:
  126. - "27017:27017"
  127. webstatus:
  128. environment:
  129. - ASPNETCORE_ENVIRONMENT=Production
  130. - ASPNETCORE_URLS=http://0.0.0.0:80
  131. - CatalogUrl=http://catalog.api/hc
  132. - OrderingUrl=http://ordering.api/hc
  133. - BasketUrl=http://basket.api/hc
  134. - IdentityUrl=http://identity.api/hc
  135. - LocationsUrl=http://locations.api/hc
  136. - MarketingUrl=http://marketing.api/hc
  137. - mvc=http://webmvc/hc
  138. - spa=http://webspa/hc
  139. ports:
  140. - "5107:80"
  141. payment.api:
  142. environment:
  143. - ASPNETCORE_ENVIRONMENT=Production
  144. - ASPNETCORE_URLS=http://0.0.0.0:5108
  145. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  146. - AzureServiceBusEnabled=False
  147. ports:
  148. - "5108:80"
  149. locations.api:
  150. environment:
  151. - ASPNETCORE_ENVIRONMENT=Production
  152. - ASPNETCORE_URLS=http://0.0.0.0:80
  153. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  154. - Database=LocationsDb
  155. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  156. - IdentityUrlExternal=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105
  157. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  158. - AzureServiceBusEnabled=False
  159. ports:
  160. - "5109:80"