-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathdocker-cloud.yml
108 lines (108 loc) · 2.27 KB
/
docker-cloud.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
admin:
autoredeploy: true
command: node admin/server.js
environment:
- BALANCE=source
- 'VIRTUAL_HOST=admin.cotejs.org, demo-admin.cotejs.org, ws://admin.cotejs.org, ws://demo-admin.cotejs.org'
expose:
- '5000'
image: 'cotedemo/cote-workshop:admin'
restart: on-failure
tags:
- admin
db:
autoredeploy: true
command: node init-db.js
environment:
- PG=true
image: 'cotedemo/cote-workshop:init-db'
links:
- postgres
tags:
- db
end-user:
autoredeploy: true
command: node end-user/server.js
environment:
- BALANCE=source
- 'VIRTUAL_HOST=end-user.cotejs.org, ws://end-user.cotejs.org, demo-end-user.cotejs.org, ws://demo-end-user.cotejs.org'
expose:
- '5001'
image: 'cotedemo/cote-workshop:end-user'
restart: on-failure
tags:
- end-user
lb:
deployment_strategy: every_node
image: 'dockercloud/haproxy:latest'
links:
- admin
- end-user
- monitoring
ports:
- '80:80'
- '443:443'
restart: on-failure
roles:
- global
tags:
- lb
monitoring:
autoredeploy: true
command: node monitor.js
environment:
- PORT=5555
- 'VIRTUAL_HOST=monitoring.cotejs.org,demo-monitoring.cotejs.org'
expose:
- '5555'
image: 'cotedemo/cote-workshop:monitoring'
tags:
- mon
payment-service:
autoredeploy: true
command: node services/payment-service.js
environment:
- PG=true
image: 'cotedemo/cote-workshop:payment-service'
links:
- postgres
restart: on-failure
tags:
- payment
postgres:
environment:
- DB_NAME=cote
- DB_PASS=ohgath2ig8eoP8
- DB_USER=cote
image: 'sameersbn/postgresql:9.6-1'
tags:
- db
volumes:
- '/data/pg:/var/lib/postgresql'
product-service:
autoredeploy: true
command: node services/product-service.js
environment:
- PG=true
image: 'cotedemo/cote-workshop:product-service'
restart: on-failure
tags:
- services
purchase-service:
autoredeploy: true
command: node services/purchase-service.js
environment:
- PG=true
image: 'cotedemo/cote-workshop:purchase-service'
restart: on-failure
tags:
- services
user-service:
autoredeploy: true
command: node services/user-service.js
environment:
- PG=true
image: 'cotedemo/cote-workshop:user-service'
restart: on-failure
tags:
- services