Skip to content

Commit eb9aa84

Browse files
author
Javier Suárez Ruiz
committed
2 parents 71b010b + 2850c91 commit eb9aa84

3 files changed

Lines changed: 52 additions & 24 deletions

File tree

build-images.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ dotnet publish $basketPathToJson -o $basketPathToPub
5454
docker build -t eshop/web $webPathToPub
5555
docker build -t eshop/catalog.api $catalogPathToPub
5656
docker build -t eshop/ordering.api $orderingPathToPub
57-
docker build -t eshop/basket.api $basketPathToPub
57+
docker build -t eshop/basket.api $basketPathToPub
58+

docker-compose.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,62 @@ version: '2'
22

33
services:
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"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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"

0 commit comments

Comments
 (0)