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.

156 lines
6.7 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.yml -f docker-compose.prod.yml up -d
  12. services:
  13. graceperiodmanager:
  14. environment:
  15. - ASPNETCORE_ENVIRONMENT=Production
  16. - ASPNETCORE_URLS=http://0.0.0.0:80
  17. - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  18. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  19. basket.api:
  20. environment:
  21. - ASPNETCORE_ENVIRONMENT=Production
  22. - ASPNETCORE_URLS=http://0.0.0.0:80
  23. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket.data}
  24. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  25. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  26. ports:
  27. - "5103:80"
  28. catalog.api:
  29. environment:
  30. - ASPNETCORE_ENVIRONMENT=Production
  31. ASPNETCORE_URLS=http://0.0.0.0:80
  32. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  33. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG:-http://localhost:5101/api/v1/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5110.
  34. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  35. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  36. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  37. - UseCustomizationData=True
  38. ports:
  39. - "5101:80"
  40. identity.api:
  41. environment:
  42. - ASPNETCORE_ENVIRONMENT=Production
  43. - ASPNETCORE_URLS=http://0.0.0.0:80
  44. - SpaClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5104
  45. - ConnectionStrings__DefaultConnection=${ESHOP_AZURE_IDENTITY_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  46. - MvcClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5100 #Local: You need to open your host's firewall at range 5100-5110.
  47. - XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
  48. - UseCustomizationData=True
  49. ports:
  50. - "5105:80"
  51. ordering.api:
  52. environment:
  53. - ASPNETCORE_ENVIRONMENT=Production
  54. - ASPNETCORE_URLS=http://0.0.0.0:80
  55. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  56. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  57. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  58. - UseCustomizationData=True
  59. ports:
  60. - "5102:80"
  61. marketing.api:
  62. environment:
  63. - ASPNETCORE_ENVIRONMENT=Production
  64. - ASPNETCORE_URLS=http://0.0.0.0:80
  65. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  66. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  67. - MongoDatabase=MarketingDb
  68. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  69. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  70. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  71. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING:-http://localhost:5110/api/v1/pic/}
  72. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  73. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  74. ports:
  75. - "5110:80"
  76. webspa:
  77. environment:
  78. - ASPNETCORE_ENVIRONMENT=Production
  79. - ASPNETCORE_URLS=http://0.0.0.0:80
  80. - CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
  81. - OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
  82. - IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your host's firewall at range 5100-5110.
  83. - BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
  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. ports:
  102. - "5100:80"
  103. sql.data:
  104. environment:
  105. - SA_PASSWORD=Pass@word
  106. - ACCEPT_EULA=Y
  107. ports:
  108. - "5433:1433"
  109. nosql.data:
  110. ports:
  111. - "27017:27017"
  112. webstatus:
  113. environment:
  114. - ASPNETCORE_ENVIRONMENT=Production
  115. - ASPNETCORE_URLS=http://0.0.0.0:80
  116. - CatalogUrl=http://catalog.api/hc
  117. - OrderingUrl=http://ordering.api/hc
  118. - BasketUrl=http://basket.api/hc
  119. - IdentityUrl=http://identity.api/hc
  120. - LocationsUrl=http://locations.api/hc
  121. - MarketingUrl=http://marketing.api/hc
  122. - mvc=http://webmvc/hc
  123. - spa=http://webspa/hc
  124. ports:
  125. - "5107:80"
  126. payment.api:
  127. environment:
  128. - ASPNETCORE_ENVIRONMENT=Production
  129. - ASPNETCORE_URLS=http://0.0.0.0:5108
  130. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  131. ports:
  132. - "5108:80"
  133. locations.api:
  134. environment:
  135. - ASPNETCORE_ENVIRONMENT=Production
  136. - ASPNETCORE_URLS=http://0.0.0.0:80
  137. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql.data}
  138. - Database=LocationsDb
  139. - identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
  140. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
  141. ports:
  142. - "5109:80"