Javier Suárez Ruiz 8 years ago
parent
commit
eb9aa8405e
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/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

+ 26
- 23
docker-compose.yml 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:
- "800"
# expose:
# - "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"
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