root docker-compose update, catalog and basket update.

This commit is contained in:
Carlos Cañizares Estévez 2016-11-15 09:59:59 +01:00
parent a2e7e77761
commit f874d7baf1
3 changed files with 52 additions and 24 deletions

View File

@ -54,4 +54,5 @@ dotnet publish $basketPathToJson -o $basketPathToPub
docker build -t eshop/web $webPathToPub docker build -t eshop/web $webPathToPub
docker build -t eshop/catalog.api $catalogPathToPub docker build -t eshop/catalog.api $catalogPathToPub
docker build -t eshop/ordering.api $orderingPathToPub docker build -t eshop/ordering.api $orderingPathToPub
docker build -t eshop/basket.api $basketPathToPub docker build -t eshop/basket.api $basketPathToPub

View File

@ -2,59 +2,62 @@ version: '2'
services: services:
webmvc: webmvc:
image: eshop/web:latest image: eshop/web${TAG}
build:
context: .
dockerfile: Dockerfile
environment: environment:
- CatalogUrl=http://catalog.api - CatalogUrl=http://catalog.api
- OrderingUrl=http://ordering.api - OrderingUrl=http://ordering.api
ports: ports:
- "800:80" - "5100:80"
depends_on: depends_on:
- catalog.api - catalog.api
- ordering.api - identity.data
catalog.api: catalog.api:
image: eshop/catalog.api:latest image: eshop/catalog.api
environment: environment:
- ConnectionString=Server=catalogdata;Initial Catalog=CatalogDB;User Id=sa;Password=Pass@word - ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word
expose: expose:
- "80" - "80"
ports:
- "5101:80"
depends_on: depends_on:
- catalogdata - catalog.data
catalogdata: catalog.data:
image: eshop/mssql-server-private-preview image: eshop/mssql-server-private-preview
environment: environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Pass@word - SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports: ports:
- "1455:1433" - "5434:1433"
ordering.api: ordering.api:
image: eshop/ordering.api:latest image: eshop/ordering.api
environment: environment:
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word - ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
ports: ports:
- "81:80" - "81:80"
# (Go to Production): For secured/final deployment, remove Ports mapping and # (Go to Production): For secured/final deployment, remove Ports mapping and
# leave just the internal expose section # leave just the internal expose section
expose: # expose:
- "800" # - "80"
extra_hosts: extra_hosts:
- "DESKTOP-1HNACCH:192.168.1.39" - "CESARDLBOOKVHD:10.0.75.1"
depends_on: depends_on:
- ordering.data - ordering.data
ordering.data: ordering.data:
image: eshop/ordering.data.sqlserver.linux image: eshop/ordering.data.sqlserver.linux
ports: ports:
- "1433:1433" - "5432:1433"
basket.api:
image: eshop/basket.api:latest
environment:
- ConnectionString=basket.data
depends_on:
- basket.data
basket.data: identity.data:
image: redis image: eshop/mssql-server-private-preview
environment:
- SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports:
- "5433:1433"

View File

@ -0,0 +1,24 @@
version: '2'
services:
catalog.api:
image: eshop/catalog.api
build:
context: .
dockerfile: Dockerfile
environment:
- ConnectionString=Server=catalog.data;Initial Catalog=CatalogData;User Id=sa;Password=Pass@word
expose:
- "80"
ports:
- "5101:80"
depends_on:
- catalog.data
catalog.data:
image: eshop/mssql-server-private-preview
environment:
- SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports:
- "5434:1433"