File tree Expand file tree Collapse file tree
src/Services/Catalog/Catalog.API Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,4 +54,5 @@ dotnet publish $basketPathToJson -o $basketPathToPub
5454docker build - t eshop/ web $webPathToPub
5555docker build - t eshop/ catalog.api $catalogPathToPub
5656docker build - t eshop/ ordering.api $orderingPathToPub
57- docker build - t eshop/ basket.api $basketPathToPub
57+ docker build - t eshop/ basket.api $basketPathToPub
58+
Original file line number Diff line number Diff line change @@ -2,59 +2,62 @@ version: '2'
22
33services :
44 webmvc :
5- image : eshop/web:latest
5+ image : eshop/web${TAG}
6+ build :
7+ context : .
8+ dockerfile : Dockerfile
69 environment :
710 - CatalogUrl=http://catalog.api
811 - OrderingUrl=http://ordering.api
912 ports :
10- - " 800 :80"
13+ - " 5100 :80"
1114 depends_on :
1215 - catalog.api
13- - ordering.api
16+ - identity.data
1417
1518 catalog.api :
16- image : eshop/catalog.api:latest
19+ image : eshop/catalog.api
1720 environment :
18- - ConnectionString=Server=catalogdata ;Initial Catalog=CatalogDB ;User Id=sa;Password=Pass@word
21+ - ConnectionString=Server=catalog.data ;Initial Catalog=CatalogData ;User Id=sa;Password=Pass@word
1922 expose :
2023 - " 80"
24+ ports :
25+ - " 5101:80"
2126 depends_on :
22- - catalogdata
27+ - catalog.data
2328
24- catalogdata :
29+ catalog.data :
2530 image : eshop/mssql-server-private-preview
2631 environment :
27- - ACCEPT_EULA=Y
2832 - SA_PASSWORD=Pass@word
33+ - ACCEPT_EULA=Y
2934 ports :
30- - " 1455 :1433"
35+ - " 5434 :1433"
3136
3237 ordering.api :
33- image : eshop/ordering.api:latest
38+ image : eshop/ordering.api
3439 environment :
3540 - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
3641 ports :
3742 - " 81:80"
3843# (Go to Production): For secured/final deployment, remove Ports mapping and
3944# leave just the internal expose section
40- expose :
41- - " 800 "
45+ # expose:
46+ # - "80 "
4247 extra_hosts :
43- - " DESKTOP-1HNACCH:192.168.1.39 "
48+ - " CESARDLBOOKVHD:10.0.75.1 "
4449 depends_on :
4550 - ordering.data
4651
4752 ordering.data :
4853 image : eshop/ordering.data.sqlserver.linux
4954 ports :
50- - " 1433:1433"
51-
52- basket.api :
53- image : eshop/basket.api:latest
54- environment :
55- - ConnectionString=basket.data
56- depends_on :
57- - basket.data
55+ - " 5432:1433"
5856
59- basket.data :
60- image : redis
57+ identity.data :
58+ image : eshop/mssql-server-private-preview
59+ environment :
60+ - SA_PASSWORD=Pass@word
61+ - ACCEPT_EULA=Y
62+ ports :
63+ - " 5433:1433"
Original file line number Diff line number Diff line change 1+ version : ' 2'
2+
3+ services :
4+ catalog.api :
5+ image : eshop/catalog.api
6+ build :
7+ context : .
8+ dockerfile : Dockerfile
9+ environment :
10+ - ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word
11+ expose :
12+ - " 80"
13+ ports :
14+ - " 5101:80"
15+ depends_on :
16+ - catalog.data
17+
18+ catalog.data :
19+ image : eshop/mssql-server-private-preview
20+ environment :
21+ - SA_PASSWORD=Pass@word
22+ - ACCEPT_EULA=Y
23+ ports :
24+ - " 5434:1433"
You can’t perform that action at this time.
0 commit comments