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.

194 lines
7.4 KiB

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