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.

192 lines
7.7 KiB

6 years ago
  1. version: '3.4'
  2. services:
  3. rabbitmq-test:
  4. ports:
  5. - "15672:15672"
  6. - "5672:5672"
  7. sql-data-test:
  8. environment:
  9. - SA_PASSWORD=Pass@word
  10. - ACCEPT_EULA=Y
  11. ports:
  12. - "5433:1433"
  13. nosql-data-test:
  14. ports:
  15. - "27017:27017"
  16. basket-data-test:
  17. ports:
  18. - "6379:6379"
  19. identity-api-test:
  20. environment:
  21. - ASPNETCORE_ENVIRONMENT=Development
  22. - ASPNETCORE_URLS=http://0.0.0.0:80
  23. - SpaClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5104
  24. - XamarinCallback=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105/xamarincallback
  25. - ConnectionString=${ESHOP_AZURE_IDENTITY_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=sa;Password=Pass@word}
  26. - MvcClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5100
  27. - LocationApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
  28. - MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
  29. - BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
  30. - OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
  31. - MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
  32. - WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
  33. - UseCustomizationData=True
  34. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  35. - OrchestratorType=${ORCHESTRATOR_TYPE}
  36. ports:
  37. - "5105:80"
  38. basket-api-test:
  39. environment:
  40. - ASPNETCORE_ENVIRONMENT=Development
  41. - ASPNETCORE_URLS=http://0.0.0.0:80
  42. - ConnectionString=${ESHOP_AZURE_REDIS_BASKET_DB:-basket-data-test}
  43. - identityUrl=http://identity-api
  44. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  45. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  46. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  47. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  48. - AzureServiceBusEnabled=False
  49. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  50. - OrchestratorType=${ORCHESTRATOR_TYPE}
  51. - UseLoadTest=${USE_LOADTEST:-False}
  52. ports:
  53. - "5103:80"
  54. entrypoint:
  55. - dotnet
  56. - test
  57. - --logger
  58. - trx;LogFileName=basket-test-results.xml
  59. catalog-api-test:
  60. environment:
  61. - ASPNETCORE_ENVIRONMENT=Development
  62. - ASPNETCORE_URLS=http://0.0.0.0:80
  63. - ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
  64. - PicBaseUrl=${ESHOP_AZURE_STORAGE_CATALOG_URL:-http://localhost:5202/api/v1/c/catalog/items/[0]/pic/}
  65. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  66. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  67. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  68. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_CATALOG_NAME}
  69. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_CATALOG_KEY}
  70. - UseCustomizationData=True
  71. - AzureServiceBusEnabled=False
  72. - AzureStorageEnabled=False
  73. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  74. - OrchestratorType=${ORCHESTRATOR_TYPE}
  75. ports:
  76. - "5101:80"
  77. entrypoint:
  78. - dotnet
  79. - test
  80. - --logger
  81. - trx;LogFileName=catalog-test-results.xml
  82. ordering-api-test:
  83. environment:
  84. - ASPNETCORE_ENVIRONMENT=Development
  85. - ASPNETCORE_URLS=http://0.0.0.0:80
  86. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  87. - identityUrl=http://identity-api
  88. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  89. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  90. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  91. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  92. - UseCustomizationData=True
  93. - AzureServiceBusEnabled=False
  94. - CheckUpdateTime=30000
  95. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  96. - OrchestratorType=${ORCHESTRATOR_TYPE}
  97. - UseLoadTest=${USE_LOADTEST:-False}
  98. ports:
  99. - "5102:80"
  100. entrypoint:
  101. - dotnet
  102. - test
  103. - --logger
  104. - trx;LogFileName=ordering-test-results.xml
  105. ordering-backgroundtasks-test:
  106. environment:
  107. - ASPNETCORE_ENVIRONMENT=Development
  108. - ASPNETCORE_URLS=http://0.0.0.0:80
  109. - ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
  110. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  111. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  112. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  113. - UseCustomizationData=True
  114. - AzureServiceBusEnabled=False
  115. - CheckUpdateTime=30000
  116. - GracePeriodTime=1
  117. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  118. - OrchestratorType=${ORCHESTRATOR_TYPE}
  119. - UseLoadTest=${USE_LOADTEST:-False}
  120. ports:
  121. - "5111:80"
  122. marketing-api-test:
  123. environment:
  124. - ASPNETCORE_ENVIRONMENT=Development
  125. - ASPNETCORE_URLS=http://0.0.0.0:80
  126. - ConnectionString=${ESHOP_AZURE_MARKETING_DB:-Server=sql-data-test;Database=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word}
  127. - MongoConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
  128. - MongoDatabase=MarketingDb
  129. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  130. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  131. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  132. - identityUrl=http://identity-api
  133. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  134. - CampaignDetailFunctionUri=${ESHOP_AZUREFUNC_CAMPAIGN_DETAILS_URI}
  135. - PicBaseUrl=${ESHOP_AZURE_STORAGE_MARKETING_URL:-http://localhost:5110/api/v1/campaigns/[0]/pic/}
  136. - AzureStorageAccountName=${ESHOP_AZURE_STORAGE_MARKETING_NAME}
  137. - AzureStorageAccountKey=${ESHOP_AZURE_STORAGE_MARKETING_KEY}
  138. - AzureServiceBusEnabled=False
  139. - AzureStorageEnabled=False
  140. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  141. - OrchestratorType=${ORCHESTRATOR_TYPE}
  142. - UseLoadTest=${USE_LOADTEST:-False}
  143. ports:
  144. - "5110:80"
  145. entrypoint:
  146. - dotnet
  147. - test
  148. - --logger:trx;LogFileName=marketing-test-results.xml
  149. payment-api-test:
  150. environment:
  151. - ASPNETCORE_ENVIRONMENT=Development
  152. - ASPNETCORE_URLS=http://0.0.0.0:80
  153. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  154. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  155. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  156. - AzureServiceBusEnabled=False
  157. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  158. - OrchestratorType=${ORCHESTRATOR_TYPE}
  159. ports:
  160. - "5108:80"
  161. locations-api-test:
  162. environment:
  163. - ASPNETCORE_ENVIRONMENT=Development
  164. - ASPNETCORE_URLS=http://0.0.0.0:80
  165. - ConnectionString=${ESHOP_AZURE_COSMOSDB:-mongodb://nosql-data-test}
  166. - Database=LocationsDb
  167. - identityUrl=http://identity-api
  168. - IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
  169. - EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq-test}
  170. - EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
  171. - EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
  172. - AzureServiceBusEnabled=False
  173. - ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
  174. - OrchestratorType=${ORCHESTRATOR_TYPE}
  175. - UseLoadTest=${USE_LOADTEST:-False}
  176. ports:
  177. - "5109:80"
  178. entrypoint:
  179. - dotnet
  180. - test
  181. - --logger:trx;LogFileName=locations-test-results.xml