forked from ebartz/example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack-windows.yml
61 lines (55 loc) · 1.25 KB
/
docker-stack-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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: