same SQL for catalog and ordering
This commit is contained in:
parent
9e72fe7c7c
commit
44f238f3fd
@ -77,35 +77,27 @@ services:
|
||||
catalog.api:
|
||||
image: eshop/catalog.api
|
||||
environment:
|
||||
- ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word
|
||||
- ConnectionString=Server=business.data;Database=CatalogDB;User Id=sa;Password=Pass@word
|
||||
ports:
|
||||
- "5101:80"
|
||||
depends_on:
|
||||
- catalog.data
|
||||
- business.data
|
||||
|
||||
catalog.data:
|
||||
ordering.api:
|
||||
image: eshop/ordering.api
|
||||
environment:
|
||||
- ConnectionString=Server=business.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
|
||||
- identityUrl=http://identity.service:5105 #local
|
||||
#- identityUrl=http://104.40.62.65:5105 #remote
|
||||
ports:
|
||||
- "5102:5102"
|
||||
depends_on:
|
||||
- business.data
|
||||
|
||||
business.data:
|
||||
image: microsoft/mssql-server-linux
|
||||
environment:
|
||||
- SA_PASSWORD=Pass@word
|
||||
- ACCEPT_EULA=Y
|
||||
ports:
|
||||
- "5434:1433"
|
||||
|
||||
ordering.api:
|
||||
image: eshop/ordering.api
|
||||
environment:
|
||||
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
|
||||
- identityUrl=http://identity.service:5105 #local
|
||||
#- identityUrl=http://104.40.62.65:5105 #remote
|
||||
ports:
|
||||
- "5102:5102"
|
||||
depends_on:
|
||||
- ordering.data
|
||||
|
||||
ordering.data:
|
||||
image: microsoft/mssql-server-linux
|
||||
environment:
|
||||
- SA_PASSWORD=Pass@word
|
||||
- ACCEPT_EULA=Y
|
||||
ports:
|
||||
- "5432:1433"
|
||||
|
@ -15,7 +15,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
|
||||
var host = new WebHostBuilder()
|
||||
.UseKestrel()
|
||||
.UseContentRoot(Directory.GetCurrentDirectory())
|
||||
.UseUrls("http://0.0.0.0:5003")
|
||||
.UseUrls("http://0.0.0.0:5103")
|
||||
.UseIISIntegration()
|
||||
.UseStartup<Startup>()
|
||||
.Build();
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=CatalogDB;User Id=sa;Password=Pass@word",
|
||||
"ConnectionString": "Server=tcp:127.0.0.1,5434;Initial Catalog=CatalogDB;User Id=sa;Password=Pass@word",
|
||||
"Logging": {
|
||||
"IncludeScopes": false,
|
||||
"LogLevel": {
|
||||
|
@ -13,7 +13,7 @@ namespace eShopOnContainers.Identity
|
||||
{
|
||||
var host = new WebHostBuilder()
|
||||
.UseKestrel()
|
||||
.UseUrls("http://0.0.0.0:5000")
|
||||
.UseUrls("http://0.0.0.0:5105")
|
||||
.UseContentRoot(Directory.GetCurrentDirectory())
|
||||
.UseIISIntegration()
|
||||
.UseStartup<Startup>()
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"ConnectionString": "Server=tcp:127.0.0.1,5432;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;",
|
||||
"ConnectionString": "Server=tcp:127.0.0.1,5434;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;",
|
||||
"IdentityUrl": "http://localhost:5105"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user