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.

78 lines
1.7 KiB

  1. version: '2'
  2. services:
  3. webmvc:
  4. image: eshop/web${TAG}
  5. build:
  6. context: .
  7. dockerfile: Dockerfile
  8. environment:
  9. - CatalogUrl=http://catalog.api
  10. - OrderingUrl=http://ordering.api
  11. ports:
  12. - "5100:80"
  13. depends_on:
  14. - catalog.api
  15. - identity.data
  16. - basket.api
  17. catalog.api:
  18. image: eshop/catalog.api
  19. environment:
  20. - ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word
  21. expose:
  22. - "80"
  23. ports:
  24. - "5101:80"
  25. depends_on:
  26. - catalog.data
  27. catalog.data:
  28. image: eshop/mssql-server-private-preview
  29. environment:
  30. - SA_PASSWORD=Pass@word
  31. - ACCEPT_EULA=Y
  32. ports:
  33. - "5434:1433"
  34. ordering.api:
  35. image: eshop/ordering.api
  36. environment:
  37. - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  38. ports:
  39. - "5102:80"
  40. # (Go to Production): For secured/final deployment, remove Ports mapping and
  41. # leave just the internal expose section
  42. # expose:
  43. # - "80"
  44. extra_hosts:
  45. - "CESARDLBOOKVHD:10.0.75.1"
  46. depends_on:
  47. - ordering.data
  48. ordering.data:
  49. image: eshop/ordering.data.sqlserver.linux
  50. ports:
  51. - "5432:1433"
  52. identity.data:
  53. image: eshop/mssql-server-private-preview
  54. environment:
  55. - SA_PASSWORD=Pass@word
  56. - ACCEPT_EULA=Y
  57. ports:
  58. - "5433:1433"
  59. basket.api:
  60. image: eshop/basket.api
  61. environment:
  62. - ConnectionString=basket.data
  63. build:
  64. context: .
  65. dockerfile: Dockerfile
  66. ports:
  67. - "5103:80"
  68. depends_on:
  69. - basket.data
  70. basket.data:
  71. image: redis