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.

54 lines
1.2 KiB

  1. version: '2'
  2. services:
  3. webmvc:
  4. image: eshop/web:latest
  5. environment:
  6. - CatalogUrl=http://catalog.api
  7. - OrderingUrl=http://ordering.api
  8. ports:
  9. - "800:80"
  10. depends_on:
  11. - catalog.api
  12. - ordering.api
  13. catalog.api:
  14. image: eshop/catalog.api:latest
  15. environment:
  16. - ConnectionString=Server=catalogdata;Port=5432;Database=postgres;username=postgres
  17. expose:
  18. - "80"
  19. depends_on:
  20. - catalogdata
  21. catalogdata:
  22. image: glennc/eshopdata
  23. ordering.api:
  24. image: eshop/ordering.api:latest
  25. environment:
  26. - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
  27. ports:
  28. - "81:80"
  29. # (Go to Production): For secured/final deployment, remove Ports mapping and
  30. # leave just the internal expose section
  31. expose:
  32. - "800"
  33. extra_hosts:
  34. - "DESKTOP-1HNACCH:192.168.1.39"
  35. depends_on:
  36. - ordering.data
  37. ordering.data:
  38. image: eshop/ordering.data.sqlserver.linux
  39. ports:
  40. - "1433:1433"
  41. basket.api:
  42. image: eshop/basket.api:latest
  43. environment:
  44. - ConnectionString=basket.data
  45. depends_on:
  46. - basket.data
  47. basket.data:
  48. image: redis