2018-09-26 11:29:39 +02:00
|
|
|
version: "3.2"
|
|
|
|
|
|
|
|
services:
|
|
|
|
vote:
|
2018-09-26 20:41:20 +02:00
|
|
|
image: dockersamples/examplevotingapp_vote:dotnet-nanoserver-sac2016
|
2018-09-26 11:29:39 +02:00
|
|
|
build:
|
|
|
|
context: ./vote/dotnet
|
|
|
|
ports:
|
|
|
|
- "5000:80"
|
|
|
|
depends_on:
|
|
|
|
- message-queue
|
|
|
|
|
|
|
|
result:
|
2018-09-26 20:41:20 +02:00
|
|
|
image: dockersamples/examplevotingapp_result:dotnet-nanoserver-sac2016
|
2018-09-26 11:29:39 +02:00
|
|
|
build:
|
|
|
|
context: ./result/dotnet
|
|
|
|
ports:
|
|
|
|
- "5001:80"
|
|
|
|
environment:
|
2018-09-26 20:41:20 +02:00
|
|
|
- "ConnectionStrings:ResultData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
2018-09-26 11:29:39 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
worker:
|
2018-09-26 20:41:20 +02:00
|
|
|
image: dockersamples/examplevotingapp_worker:dotnet-nanoserver-sac2016
|
2018-09-26 11:29:39 +02:00
|
|
|
build:
|
|
|
|
context: ./worker/dotnet
|
|
|
|
environment:
|
2018-09-26 20:41:20 +02:00
|
|
|
- "ConnectionStrings:VoteData=Server=db;Port=4000;Database=votes;User=root;SslMode=None"
|
2018-09-26 11:29:39 +02:00
|
|
|
depends_on:
|
|
|
|
- message-queue
|
|
|
|
- db
|
|
|
|
|
|
|
|
message-queue:
|
|
|
|
image: nats:nanoserver
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: dockersamples/tidb:nanoserver
|
|
|
|
ports:
|
|
|
|
- "3306:4000"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: nat
|