Browse Source

root docker-compose update, catalog and basket update.

pull/49/merge
Carlos Cañizares Estévez 8 years ago
parent
commit
f874d7baf1
3 changed files with 52 additions and 24 deletions
  1. +2
    -1
      build-images.ps1
  2. +26
    -23
      docker-compose.yml
  3. +24
    -0
      src/Services/Catalog/Catalog.API/docker-compose.yml

+ 2
- 1
build-images.ps1 View File

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

+ 26
- 23
docker-compose.yml View File

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

+ 24
- 0
src/Services/Catalog/Catalog.API/docker-compose.yml 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"

Loading…
Cancel
Save