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.

31 lines
1.8 KiB

  1. # Containerized eShop - Web Mvc
  2. Sample reference containerized application, cross-platform and microservices architecture.
  3. Powered by Microsoft
  4. #Overview
  5. This sample runs a microservices oriented application and a .net core Mvc application that consumes this services. You can find more information about how to set up docker in your machine in the global directory solution.
  6. #Deploy
  7. In the global directory you will find the scripts needed to run and deploy the demo into your local docker infraestructure.
  8. - <a href='build-image-web.ps1'>build-image-web.ps1</a> <b>Build .net applications and docker images</b>: This power shell script that you will find in the <u>root directory of the solution</u> is the responsible of building .net applications and package in a pub folder and use docker commands to build the images needed to run the previously packaged .net applications.
  9. - <b>Compose containers in your docker local VM</b>: Finally you have to open your favourite command tool pointing to the <u>root directory of this project</u> where docker-compose.yml file is located and run the command `docker-compose up`
  10. #Run
  11. Once the deploy process of docker-compose finishes you have to be able to access the services in this urls:
  12. - Web: http://localhost:5100
  13. - Catalog service: http://localhost:5101
  14. - Orders service: http://localhost:5102
  15. - Basket service: http://localhost:5103
  16. - Identity service: http://localhost:5105
  17. - Orders data (SQL Server): Server=tcp:localhost,5432;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;
  18. - Catalog data (SQL Server): Server=tcp:localhost,5434;Database=CatalogDB;User Id=sa;Password=Pass@word
  19. - Identity data (SQL Server): Server=localhost,5433;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word
  20. - Basket data (Redis): listening in localhost:6379