From f874d7baf1a8b78f6e3e9377385b6d06d32957b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ca=C3=B1izares=20Est=C3=A9vez?= Date: Tue, 15 Nov 2016 09:59:59 +0100 Subject: [PATCH] root docker-compose update, catalog and basket update. --- build-images.ps1 | 3 +- docker-compose.yml | 49 ++++++++++--------- .../Catalog/Catalog.API/docker-compose.yml | 24 +++++++++ 3 files changed, 52 insertions(+), 24 deletions(-) create mode 100644 src/Services/Catalog/Catalog.API/docker-compose.yml diff --git a/build-images.ps1 b/build-images.ps1 index 203df06ee..c11713e1d 100644 --- a/build-images.ps1 +++ b/build-images.ps1 @@ -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 \ No newline at end of file +docker build -t eshop/basket.api $basketPathToPub + diff --git a/docker-compose.yml b/docker-compose.yml index 37d67123f..fd5f51b89 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + identity.data: + image: eshop/mssql-server-private-preview + environment: + - SA_PASSWORD=Pass@word + - ACCEPT_EULA=Y + ports: + - "5433:1433" \ No newline at end of file diff --git a/src/Services/Catalog/Catalog.API/docker-compose.yml b/src/Services/Catalog/Catalog.API/docker-compose.yml new file mode 100644 index 000000000..4079f6edf --- /dev/null +++ b/src/Services/Catalog/Catalog.API/docker-compose.yml @@ -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"