-
Notifications
You must be signed in to change notification settings - Fork 62
/
docker-compose.yml
85 lines (75 loc) · 1.58 KB
/
docker-compose.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
version: '2'
services:
base:
build: .
image: dashersw/cote-workshop
restart: on-failure
environment:
- PG=true
lb:
image: dockercloud/haproxy
links:
- admin
- end-user
- monitoring
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
restart: on-failure
admin:
extends: base
command: node admin/server.js
environment:
- VIRTUAL_HOST=local-admin.cotejs.org, ws://local-admin.cotejs.org
- BALANCE=source
ports:
- 5000:5000
end-user:
extends: base
command: node end-user/server.js
environment:
- VIRTUAL_HOST=local-end-user.cotejs.org, ws://local-end-user.cotejs.org
- BALANCE=source
ports:
- 5001:5001
monitoring:
extends: base
command: node monitor.js
environment:
- PORT=80
- VIRTUAL_HOST=local-monitoring.cotejs.org
ports:
- 5555:5555
payment-service:
extends: base
command: node services/payment-service.js
depends_on:
- db
product-service:
extends: base
command: node services/product-service.js
depends_on:
- db
purchase-service:
extends: base
command: node services/purchase-service.js
depends_on:
- db
user-service:
extends: base
command: node services/user-service.js
depends_on:
- db
db:
extends: base
command: node init-db.js
depends_on:
- postgres
postgres:
image: sameersbn/postgresql:9.6-1
environment:
- DB_USER=cote
- DB_PASS=ohgath2ig8eoP8
- DB_NAME=cote