Skip to content

Commit a042894

Browse files
committed
Merge with dev
2 parents 6f04cd1 + 31753fc commit a042894

139 files changed

Lines changed: 2158 additions & 1451 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 111 additions & 37 deletions
Large diffs are not rendered by default.

build-images.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dotnet restore $webPathToJson
1616
dotnet build $webPathToJson
1717
dotnet publish $webPathToJson -o $webPathToPub
1818

19-
2019
# *** WebSPA image ***
2120
$webSPAPathToJson = $scriptPath + "\src\Web\WebSPA\eShopOnContainers.WebSPA\project.json"
2221
Write-Host "webSPAPathToJson is $webSPAPathToJson" -ForegroundColor Yellow

docker-compose.override.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#
2+
# docker-compose.override.yml is used to set up local configuration environment
3+
# Things like the external ports to use or secrets/passwords depend on the
4+
# specific deployment environment you might be using.
5+
# Further details and docs: https://docs.docker.com/compose/extends/
6+
#
7+
8+
version: '2'
9+
10+
services:
11+
12+
# webmvc:
13+
# environment:
14+
# - CatalogUrl=http://catalog.api
15+
# - OrderingUrl=http://ordering.api:5102
16+
#- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
17+
# - IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
18+
# - BasketUrl=http://basket.api:5103
19+
# ports:
20+
# - "5100:5100"
21+
22+
webspa:
23+
environment:
24+
- CatalogUrl=http://catalog.api
25+
- OrderingUrl=http://ordering.api
26+
#- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
27+
- IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
28+
- BasketUrl=http://basket.api:5103
29+
ports:
30+
- "5104:80"
31+
32+
basket.api:
33+
environment:
34+
- ConnectionString=basket.data
35+
#- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
36+
- identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
37+
ports:
38+
- "5103:5103"
39+
40+
catalog.api:
41+
environment:
42+
- ConnectionString=Server=sql.data;Database=CatalogDB;User Id=sa;Password=Pass@word
43+
ports:
44+
- "5101:80"
45+
46+
# ordering.api:
47+
# environment:
48+
# - ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
49+
# - identityUrl=http://identity.service:5105 #local
50+
#- identityUrl=http://104.40.62.65:5105 #remote
51+
# ports:
52+
# - "5102:5102"
53+
54+
identity.service:
55+
environment:
56+
- SpaClient=http://localhost:5104
57+
- ConnectionStrings__DefaultConnection=Server=sql.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word
58+
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105.
59+
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker.
60+
#10.0.75.1:5105 CCE/TODO: try to avoid host entry.
61+
ports:
62+
- "5105:5105"
63+
64+
sql.data:
65+
environment:
66+
- SA_PASSWORD=Pass@word
67+
- ACCEPT_EULA=Y
68+
ports:
69+
- "5433:1433"

docker-compose.yml

Lines changed: 23 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,47 @@
1+
#
2+
# docker-compose.yml is used to set up the base config per container to be deployed
3+
# Take into account that when deploying, this base configuration is merged with the
4+
# configuration-per-environment specified at the docker-compose.override.yml
5+
# Further details and docs: https://docs.docker.com/compose/extends/
6+
#
17
version: '2'
28

39
services:
4-
webmvc:
5-
image: eshop/web
6-
build:
7-
context: .
8-
dockerfile: Dockerfile
9-
environment:
10-
- CatalogUrl=http://catalog.api
11-
- OrderingUrl=http://ordering.api
12-
#- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
13-
- IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
14-
- BasketUrl=http://basket.api
15-
ports:
16-
- "5100:5100"
17-
depends_on:
18-
- identity.service
19-
- basket.api
10+
# webmvc:
11+
# image: eshop/web
12+
# depends_on:
13+
# - identity.service
14+
# - basket.api
2015

2116
webspa:
2217
image: eshop/webspa
23-
build:
24-
context: .
25-
dockerfile: Dockerfile
26-
environment:
27-
- CatalogUrl=http://catalog.api
28-
- OrderingUrl=http://ordering.api
29-
#- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
30-
- IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
31-
- BasketUrl=http://basket.api
32-
ports:
33-
- "5104:80"
3418
depends_on:
3519
- basket.api
3620
- identity.service
3721

38-
identity.service:
39-
image: eshop/identity
40-
environment:
41-
- SpaClient=http://localhost:5104
42-
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word
43-
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105.
44-
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker.
45-
ports:
46-
- "5105:5105"
47-
depends_on:
48-
- identity.data
49-
50-
identity.data:
51-
image: microsoft/mssql-server-linux
52-
environment:
53-
- SA_PASSWORD=Pass@word
54-
- ACCEPT_EULA=Y
55-
ports:
56-
- "5433:1433"
57-
5822
basket.api:
5923
image: eshop/basket.api
60-
environment:
61-
- ConnectionString=basket.data
62-
#- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105.
63-
- identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker.
64-
build:
65-
context: .
66-
dockerfile: Dockerfile
67-
ports:
68-
- "5103:5103"
6924
depends_on:
7025
- basket.data
7126
- identity.service
7227

73-
basket.data:
74-
image: redis
75-
7628
catalog.api:
7729
image: eshop/catalog.api
78-
environment:
79-
- ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word
80-
ports:
81-
- "5101:80"
8230
depends_on:
83-
- catalog.data
31+
- sql.data
8432

85-
catalog.data:
86-
image: microsoft/mssql-server-linux
87-
environment:
88-
- SA_PASSWORD=Pass@word
89-
- ACCEPT_EULA=Y
90-
ports:
91-
- "5434:1433"
33+
# ordering.api:
34+
# image: eshop/ordering.api
35+
# depends_on:
36+
# - sql.data
9237

93-
ordering.api:
94-
image: eshop/ordering.api
95-
environment:
96-
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
97-
ports:
98-
- "5102:80"
38+
identity.service:
39+
image: eshop/identity
9940
depends_on:
100-
- ordering.data
41+
- sql.data
10142

102-
ordering.data:
43+
sql.data:
10344
image: microsoft/mssql-server-linux
104-
environment:
105-
- SA_PASSWORD=Pass@word
106-
- ACCEPT_EULA=Y
107-
ports:
108-
- "5432:1433"
45+
46+
basket.data:
47+
image: redis

0 commit comments

Comments
 (0)