Pin to Nano Server SAC 2016 images
This commit is contained in:
parent
93ba2be2c1
commit
ac496c8b7e
@ -2,6 +2,7 @@ version: "3.2"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
vote:
|
vote:
|
||||||
|
image: dockersamples/examplevotingapp_vote:dotnet-nanoserver-sac2016
|
||||||
build:
|
build:
|
||||||
context: ./vote/dotnet
|
context: ./vote/dotnet
|
||||||
ports:
|
ports:
|
||||||
@ -10,20 +11,22 @@ services:
|
|||||||
- message-queue
|
- message-queue
|
||||||
|
|
||||||
result:
|
result:
|
||||||
|
image: dockersamples/examplevotingapp_result:dotnet-nanoserver-sac2016
|
||||||
build:
|
build:
|
||||||
context: ./result/dotnet
|
context: ./result/dotnet
|
||||||
ports:
|
ports:
|
||||||
- "5001:80"
|
- "5001:80"
|
||||||
environment:
|
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:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
|
image: dockersamples/examplevotingapp_worker:dotnet-nanoserver-sac2016
|
||||||
build:
|
build:
|
||||||
context: ./worker/dotnet
|
context: ./worker/dotnet
|
||||||
environment:
|
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:
|
depends_on:
|
||||||
- message-queue
|
- message-queue
|
||||||
- db
|
- 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
|
WORKDIR /Result
|
||||||
COPY Result/Result.csproj .
|
COPY Result/Result.csproj .
|
||||||
@ -8,7 +8,7 @@ COPY /Result .
|
|||||||
RUN dotnet publish -c Release -o /out Result.csproj
|
RUN dotnet publish -c Release -o /out Result.csproj
|
||||||
|
|
||||||
# app image
|
# app image
|
||||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime
|
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["dotnet", "Result.dll"]
|
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
|
WORKDIR /Vote
|
||||||
COPY Vote/Vote.csproj .
|
COPY Vote/Vote.csproj .
|
||||||
@ -8,7 +8,7 @@ COPY /Vote .
|
|||||||
RUN dotnet publish -c Release -o /out Vote.csproj
|
RUN dotnet publish -c Release -o /out Vote.csproj
|
||||||
|
|
||||||
# app image
|
# app image
|
||||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime
|
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["dotnet", "Vote.dll"]
|
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
|
WORKDIR /Worker
|
||||||
COPY Worker/Worker.csproj .
|
COPY Worker/Worker.csproj .
|
||||||
@ -8,7 +8,7 @@ COPY /Worker .
|
|||||||
RUN dotnet publish -c Release -o /out Worker.csproj
|
RUN dotnet publish -c Release -o /out Worker.csproj
|
||||||
|
|
||||||
# app image
|
# app image
|
||||||
FROM microsoft/dotnet:2.1-runtime
|
FROM microsoft/dotnet:2.1-runtime-nanoserver-sac2016
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["dotnet", "Worker.dll"]
|
ENTRYPOINT ["dotnet", "Worker.dll"]
|
||||||
|
Loading…
Reference in New Issue
Block a user