Pin to Nano Server SAC 2016 images
This commit is contained in:
parent
93ba2be2c1
commit
ac496c8b7e
@ -2,6 +2,7 @@ version: "3.2"
|
||||
|
||||
services:
|
||||
vote:
|
||||
image: dockersamples/examplevotingapp_vote:dotnet-nanoserver-sac2016
|
||||
build:
|
||||
context: ./vote/dotnet
|
||||
ports:
|
||||
@ -10,20 +11,22 @@ services:
|
||||
- message-queue
|
||||
|
||||
result:
|
||||
image: dockersamples/examplevotingapp_result:dotnet-nanoserver-sac2016
|
||||
build:
|
||||
context: ./result/dotnet
|
||||
ports:
|
||||
- "5001:80"
|
||||
environment:
|
||||
- "Data:ConnectionString=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
||||
- "ConnectionStrings:ResultData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
worker:
|
||||
image: dockersamples/examplevotingapp_worker:dotnet-nanoserver-sac2016
|
||||
build:
|
||||
context: ./worker/dotnet
|
||||
environment:
|
||||
- "Data:ConnectionString=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
||||
- "ConnectionStrings:VoteData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
||||
depends_on:
|
||||
- message-queue
|
||||
- db
|
||||
|
61
docker-stack-windows.yml
Normal file
61
docker-stack-windows.yml
Normal file
@ -0,0 +1,61 @@
|
||||
version: "3.2"
|
||||
|
||||
services:
|
||||
vote:
|
||||
image: dockersamples/examplevotingapp_vote:dotnet-nanoserver-sac2016
|
||||
ports:
|
||||
- mode: host
|
||||
target: 80
|
||||
published: 5000
|
||||
deploy:
|
||||
endpoint_mode: dnsrr
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
result:
|
||||
image: dockersamples/examplevotingapp_result:dotnet-nanoserver-sac2016
|
||||
environment:
|
||||
- "ConnectionStrings:ResultData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
||||
ports:
|
||||
- mode: host
|
||||
target: 80
|
||||
published: 5001
|
||||
deploy:
|
||||
endpoint_mode: dnsrr
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
worker:
|
||||
image: dockersamples/examplevotingapp_worker:dotnet-nanoserver-sac2016
|
||||
environment:
|
||||
- "ConnectionStrings:VoteData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
||||
deploy:
|
||||
endpoint_mode: dnsrr
|
||||
mode: replicated
|
||||
replicas: 3
|
||||
networks:
|
||||
- backend
|
||||
|
||||
message-queue:
|
||||
image: nats:nanoserver
|
||||
deploy:
|
||||
endpoint_mode: dnsrr
|
||||
networks:
|
||||
- backend
|
||||
|
||||
db:
|
||||
image: dockersamples/tidb:nanoserver
|
||||
ports:
|
||||
- mode: host
|
||||
target: 4000
|
||||
published: 3306
|
||||
deploy:
|
||||
endpoint_mode: dnsrr
|
||||
networks:
|
||||
- backend
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
backend:
|
@ -1,4 +1,4 @@
|
||||
FROM microsoft/dotnet:2.1-sdk as builder
|
||||
FROM microsoft/dotnet:2.1-sdk-nanoserver-sac2016 as builder
|
||||
|
||||
WORKDIR /Result
|
||||
COPY Result/Result.csproj .
|
||||
@ -8,7 +8,7 @@ COPY /Result .
|
||||
RUN dotnet publish -c Release -o /out Result.csproj
|
||||
|
||||
# app image
|
||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime
|
||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016
|
||||
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["dotnet", "Result.dll"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM microsoft/dotnet:2.1-sdk as builder
|
||||
FROM microsoft/dotnet:2.1-sdk-nanoserver-sac2016 as builder
|
||||
|
||||
WORKDIR /Vote
|
||||
COPY Vote/Vote.csproj .
|
||||
@ -8,7 +8,7 @@ COPY /Vote .
|
||||
RUN dotnet publish -c Release -o /out Vote.csproj
|
||||
|
||||
# app image
|
||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime
|
||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016
|
||||
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["dotnet", "Vote.dll"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM microsoft/dotnet:2.1-sdk as builder
|
||||
FROM microsoft/dotnet:2.1-sdk-nanoserver-sac2016 as builder
|
||||
|
||||
WORKDIR /Worker
|
||||
COPY Worker/Worker.csproj .
|
||||
@ -8,7 +8,7 @@ COPY /Worker .
|
||||
RUN dotnet publish -c Release -o /out Worker.csproj
|
||||
|
||||
# app image
|
||||
FROM microsoft/dotnet:2.1-runtime
|
||||
FROM microsoft/dotnet:2.1-runtime-nanoserver-sac2016
|
||||
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["dotnet", "Worker.dll"]
|
||||
|
Loading…
Reference in New Issue
Block a user