Everything works as exepcted except SPA version which need further adjustmentspull/41/head
@ -1,17 +0,0 @@ | |||||
# | |||||
# docker-compose.override.yml is used to set up local configuration environment | |||||
# Things like the external ports to use or secrets/passwords depend on the | |||||
# specific deployment environment you might be using. | |||||
# Further details and docs: https://docs.docker.com/compose/extends/ | |||||
# | |||||
version: '2' | |||||
services: | |||||
sql.data: | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5433:1433" |
@ -1,16 +0,0 @@ | |||||
# | |||||
# docker-compose.yml is used to set up the base config per container to be deployed | |||||
# Take into account that when deploying, this base configuration is merged with the | |||||
# configuration-per-environment specified at the docker-compose.override.yml | |||||
# Further details and docs: https://docs.docker.com/compose/extends/ | |||||
# | |||||
version: '2' | |||||
services: | |||||
sql.data: | |||||
image: microsoft/mssql-server-linux | |||||
basket.data: | |||||
image: redis | |||||
ports: | |||||
- "6379:6379" |
@ -0,0 +1,9 @@ | |||||
version: '2' | |||||
services: | |||||
ci-build: | |||||
image: microsoft/aspnetcore-build:1.0-1.1 | |||||
volumes: | |||||
- .:/src | |||||
working_dir: /src | |||||
command: /bin/bash -c "dotnet restore ./eShopOnContainers-ServicesAndWebApps.sln && dotnet publish ./eShopOnContainers-ServicesAndWebApps.sln -c Release -o ./obj/Docker/publish" |
@ -0,0 +1,22 @@ | |||||
<?xml version="1.0" encoding="utf-8"?> | |||||
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk"> | |||||
<PropertyGroup Label="Globals"> | |||||
<ProjectGuid>fea0c318-ffed-4d39-8781-265718ca43dd</ProjectGuid> | |||||
<DockerLaunchBrowser>True</DockerLaunchBrowser> | |||||
<DockerServiceUrl>http://localhost:{ServicePort}/api/values</DockerServiceUrl> | |||||
<DockerServiceName>basket.api</DockerServiceName> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<None Include="docker-compose.ci.build.yml" /> | |||||
<None Include="docker-compose.override.yml"> | |||||
<DependentUpon>docker-compose.yml</DependentUpon> | |||||
</None> | |||||
<None Include="docker-compose.vs.debug.yml"> | |||||
<DependentUpon>docker-compose.yml</DependentUpon> | |||||
</None> | |||||
<None Include="docker-compose.vs.release.yml"> | |||||
<DependentUpon>docker-compose.yml</DependentUpon> | |||||
</None> | |||||
<None Include="docker-compose.yml" /> | |||||
</ItemGroup> | |||||
</Project> |
@ -0,0 +1,92 @@ | |||||
version: '2' | |||||
services: | |||||
basket.api: | |||||
image: basket.api:dev | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
environment: | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- ./src/Services/Basket/Basket.API:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
catalog.api: | |||||
image: catalog.api:dev | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
environment: | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- ./src/Services/Catalog/Catalog.API:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
identity.api: | |||||
image: identity.api:dev | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
environment: | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- ./src/Services/Identity/Identity.API:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
ordering.api: | |||||
image: ordering.api:dev | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
environment: | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- ./src/Services/Ordering/Ordering.API:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
eshoponcontainers.webspa: | |||||
image: eshoponcontainers.webspa:dev | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
environment: | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- ./src/Web/WebSPA/eShopOnContainers.WebSPA:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
webmvc: | |||||
image: webmvc:dev | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
environment: | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- ./src/Web/WebMVC:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" |
@ -0,0 +1,62 @@ | |||||
version: '2' | |||||
services: | |||||
basket.api: | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
catalog.api: | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
identity.api: | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
ordering.api: | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
eshoponcontainers.webspa: | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
webmvc: | |||||
build: | |||||
args: | |||||
source: ${DOCKER_BUILD_SOURCE} | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" |
@ -1,2 +0,0 @@ | |||||
docker-compose.yml | |||||
Dockerfile |
@ -1,5 +0,0 @@ | |||||
FROM microsoft/dotnet:1.0.1-core | |||||
ENTRYPOINT ["dotnet", "eShopConsole.dll"] | |||||
ARG source=. | |||||
WORKDIR /app | |||||
COPY $source . |
@ -1,14 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
eshopconsole: | |||||
build: | |||||
args: | |||||
source: obj/Docker/empty/ | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
volumes: | |||||
- .:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null |
@ -1,9 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
eshopconsole: | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null |
@ -1,8 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
eshopconsole: | |||||
image: user/eshopconsole${TAG} | |||||
build: | |||||
context: . | |||||
dockerfile: Dockerfile |
@ -1,2 +1,3 @@ | |||||
docker-compose.yml | |||||
Dockerfile | |||||
* | |||||
!obj/Docker/publish/* | |||||
!obj/Docker/empty/ |
@ -1,6 +1,6 @@ | |||||
FROM microsoft/aspnetcore:1.1 | FROM microsoft/aspnetcore:1.1 | ||||
ENTRYPOINT ["dotnet", "Basket.API.dll"] | |||||
ARG source=. | |||||
ARG source | |||||
WORKDIR /app | WORKDIR /app | ||||
ENV ASPNETCORE_URLS http://*:5103 | |||||
COPY $source . | |||||
EXPOSE 80 | |||||
COPY ${source:-obj/Docker/publish} . | |||||
ENTRYPOINT ["dotnet", "Basket.API.dll"] |
@ -1,40 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
basket.api: | |||||
image: eshop/basket.api | |||||
environment: | |||||
- ConnectionString=basket.data | |||||
#- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105. | |||||
- identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker. | |||||
build: | |||||
context: . | |||||
dockerfile: Dockerfile | |||||
ports: | |||||
- "5103:5103" | |||||
depends_on: | |||||
- basket.data | |||||
- identity.service | |||||
basket.data: | |||||
image: redis | |||||
identity.service: | |||||
image: eshop/identity | |||||
environment: | |||||
- SpaClient=http://localhost:5104 | |||||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||||
ports: | |||||
- "5105:5105" | |||||
depends_on: | |||||
- identity.data | |||||
identity.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5433:1433" |
@ -0,0 +1,3 @@ | |||||
* | |||||
!obj/Docker/publish/* | |||||
!obj/Docker/empty/ |
@ -1,5 +1,6 @@ | |||||
FROM microsoft/aspnetcore:1.1 | FROM microsoft/aspnetcore:1.1 | ||||
ARG source | |||||
WORKDIR /app | WORKDIR /app | ||||
EXPOSE 80 | EXPOSE 80 | ||||
COPY . /app | |||||
ENTRYPOINT dotnet Catalog.API.dll | |||||
COPY ${source:-obj/Docker/publish} . | |||||
ENTRYPOINT ["dotnet", "Catalog.API.dll"] |
@ -1,21 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
catalog.api: | |||||
image: eshop/catalog.api | |||||
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: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5434:1433" |
@ -0,0 +1,3 @@ | |||||
* | |||||
!obj/Docker/publish/* | |||||
!obj/Docker/empty/ |
@ -1,6 +1,6 @@ | |||||
FROM microsoft/aspnetcore:1.1 | FROM microsoft/aspnetcore:1.1 | ||||
ENTRYPOINT ["dotnet", "Identity.API.dll"] | |||||
ARG source=. | |||||
ARG source | |||||
WORKDIR /app | WORKDIR /app | ||||
ENV ASPNETCORE_URLS http://*:5105 | |||||
COPY $source . | |||||
EXPOSE 80 | |||||
COPY ${source:-obj/Docker/publish} . | |||||
ENTRYPOINT ["dotnet", "Identity.API.dll"] |
@ -1,22 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
identity.service: | |||||
image: eshop/identity | |||||
environment: | |||||
- SpaClient=http://localhost:5104 | |||||
- ConnectionStrings__DefaultConnection=Server=identity.data;Database=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word | |||||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||||
ports: | |||||
- "5105:5105" | |||||
depends_on: | |||||
- identity.data | |||||
sql.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5433:1433" |
@ -1,2 +1,3 @@ | |||||
docker-compose.yml | |||||
Dockerfile | |||||
* | |||||
!obj/Docker/publish/* | |||||
!obj/Docker/empty/ |
@ -1,8 +1,6 @@ | |||||
FROM microsoft/aspnetcore:1.1 | FROM microsoft/aspnetcore:1.1 | ||||
# Entry point through the copied assembly | |||||
ENTRYPOINT ["dotnet", "Ordering.API.dll"] | |||||
ARG source=. | |||||
ARG source | |||||
WORKDIR /app | WORKDIR /app | ||||
ENV ASPNETCORE_URLS http://*:5102 | |||||
COPY $source . | |||||
EXPOSE 80 | |||||
COPY ${source:-obj/Docker/publish} . | |||||
ENTRYPOINT ["dotnet", "Ordering.API.dll"] |
@ -1,39 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
ordering.api: | |||||
image: eshop/ordering.api | |||||
environment: | |||||
- ConnectionString=Server=ordering.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word | |||||
ports: | |||||
- "5102:80" | |||||
depends_on: | |||||
- ordering.data | |||||
ordering.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5432:1433" | |||||
identity.service: | |||||
image: eshop/identity | |||||
environment: | |||||
- SpaClient=http://localhost:5104 | |||||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||||
ports: | |||||
- "5105:5105" | |||||
depends_on: | |||||
- identity.data | |||||
identity.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5433:1433" |
@ -1,2 +1,3 @@ | |||||
docker-compose.yml | |||||
Dockerfile | |||||
* | |||||
!obj/Docker/publish/* | |||||
!obj/Docker/empty/ |
@ -1,6 +1,6 @@ | |||||
FROM microsoft/aspnetcore:1.1 | FROM microsoft/aspnetcore:1.1 | ||||
ENTRYPOINT ["dotnet", "WebMVC.dll"] | |||||
ARG source=. | |||||
ARG source | |||||
WORKDIR /app | WORKDIR /app | ||||
ENV ASPNETCORE_URLS http://0.0.0.0:5100 | |||||
COPY $source . | |||||
EXPOSE 80 | |||||
COPY ${source:-obj/Docker/publish} . | |||||
ENTRYPOINT ["dotnet", "WebMVC.dll"] |
@ -1,17 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
webmvc: | |||||
build: | |||||
args: | |||||
source: obj/Docker/empty/ | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
environment: | |||||
- ASPNETCORE_ENVIRONMENT=Development | |||||
- DOTNET_USE_POLLING_FILE_WATCHER=1 | |||||
volumes: | |||||
- .:/app | |||||
- ~/.nuget/packages:/root/.nuget/packages:ro | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null |
@ -1,9 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
webmvc: | |||||
labels: | |||||
- "com.microsoft.visualstudio.targetoperatingsystem=linux" | |||||
volumes: | |||||
- ~/clrdbg:/clrdbg:ro | |||||
entrypoint: tail -f /dev/null |
@ -1,95 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
webmvc: | |||||
image: eshop/web${TAG} | |||||
build: | |||||
context: . | |||||
dockerfile: Dockerfile | |||||
environment: | |||||
- CatalogUrl=http://catalog.api | |||||
- OrderingUrl=http://ordering.api | |||||
#- IdentityUrl=http://104.40.62.65:5105 | |||||
- IdentityUrl=http://identity.service:5105 #You need a entry in windows host file. | |||||
- BasketUrl=http://basket.api | |||||
- ASPNETCORE_ENVIRONMENT=Development | |||||
ports: | |||||
- "5100:5100" | |||||
depends_on: | |||||
- identity.service | |||||
- basket.api | |||||
links: | |||||
- identity.service:localhost # This line should be removed | |||||
identity.service: | |||||
image: eshop/identity | |||||
environment: | |||||
- Spa=http://webspa | |||||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||||
- Mvc=http://webmvc | |||||
ports: | |||||
- "5105:5105" | |||||
depends_on: | |||||
- identity.data | |||||
identity.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5433:1433" | |||||
basket.api: | |||||
image: eshop/basket.api | |||||
environment: | |||||
- ConnectionString=basket.data | |||||
#- identityUrl=http://104.40.62.65:5105 | |||||
- identityUrl=http://identity.service:5105 | |||||
build: | |||||
context: . | |||||
dockerfile: Dockerfile | |||||
ports: | |||||
- "5103:80" | |||||
depends_on: | |||||
- basket.data | |||||
- identity.service | |||||
basket.data: | |||||
image: redis | |||||
catalog.api: | |||||
image: eshop/catalog.api | |||||
environment: | |||||
- ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word | |||||
expose: | |||||
- "80" | |||||
ports: | |||||
- "5101:80" | |||||
depends_on: | |||||
- catalog.data | |||||
catalog.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 | |||||
ports: | |||||
- "5102:80" | |||||
depends_on: | |||||
- ordering.data | |||||
ordering.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5432:1433" |
@ -0,0 +1,3 @@ | |||||
* | |||||
!obj/Docker/publish/* | |||||
!obj/Docker/empty/ |
@ -1,8 +1,6 @@ | |||||
FROM microsoft/aspnetcore:1.1 | FROM microsoft/aspnetcore:1.1 | ||||
ENTRYPOINT ["dotnet", "eShopOnContainers.WebSPA.dll"] | |||||
ARG source=. | |||||
ARG source | |||||
WORKDIR /app | WORKDIR /app | ||||
ENV ASPNETCORE_URLS http://0.0.0.0:5104 | |||||
COPY $source . | |||||
EXPOSE 80 | |||||
COPY ${source:-obj/Docker/publish} . | |||||
ENTRYPOINT ["dotnet", "eShopOnContainers.WebSPA.dll"] |
@ -1,91 +0,0 @@ | |||||
version: '2' | |||||
services: | |||||
webspa: | |||||
image: eshop/webspa | |||||
build: | |||||
context: . | |||||
dockerfile: Dockerfile | |||||
environment: | |||||
- CatalogUrl=http://catalog.api | |||||
- OrderingUrl=http://ordering.api | |||||
#- IdentityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105. | |||||
- IdentityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker. | |||||
- BasketUrl=http://basket.api | |||||
ports: | |||||
- "5104:80" | |||||
depends_on: | |||||
- basket.api | |||||
- identity.service | |||||
identity.service: | |||||
image: eshop/identity | |||||
environment: | |||||
- SpaClient=http://localhost:5104 | |||||
- ConnectionString=Server=identity.data;Database=aspnet-Microsoft.eShopOnContainers;User Id=sa;Password=Pass@word | |||||
#- MvcClient=http://104.40.62.65:5100 #Remote: VM Needs to have public access at 5105. | |||||
- MvcClient=http://localhost:5100 #Local: You need a entry in windows host file to run identity in local docker. | |||||
ports: | |||||
- "5105:5105" | |||||
depends_on: | |||||
- identity.data | |||||
identity.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5433:1433" | |||||
basket.api: | |||||
image: eshop/basket.api | |||||
environment: | |||||
- ConnectionString=basket.data | |||||
#- identityUrl=http://104.40.62.65:5105 #Remote: VM Needs to have public access at 5105. | |||||
- identityUrl=http://identity.service:5105 #Local: You need a entry in windows host file to run identity in local docker. | |||||
build: | |||||
context: . | |||||
dockerfile: Dockerfile | |||||
ports: | |||||
- "5103:5103" | |||||
depends_on: | |||||
- basket.data | |||||
- identity.service | |||||
basket.data: | |||||
image: redis | |||||
catalog.api: | |||||
image: eshop/catalog.api | |||||
environment: | |||||
- ConnectionString=Server=catalog.data;Database=CatalogDB;User Id=sa;Password=Pass@word | |||||
ports: | |||||
- "5101:80" | |||||
depends_on: | |||||
- catalog.data | |||||
catalog.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 | |||||
ports: | |||||
- "5102:80" | |||||
depends_on: | |||||
- ordering.data | |||||
ordering.data: | |||||
image: microsoft/mssql-server-linux | |||||
environment: | |||||
- SA_PASSWORD=Pass@word | |||||
- ACCEPT_EULA=Y | |||||
ports: | |||||
- "5432:1433" |