forked from ever-co/ever-demand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
140 lines (131 loc) · 3.38 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3.7'
services:
mongo:
image: mongo
container_name: mongo
ports:
- '27017:27017'
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- mongo_data:/data/db
command: mongod --logpath=/dev/null # --quiet
networks:
- overlay
admin-web:
container_name: admin-web
image: ever-admin-web:latest
command: yarn run:admin
build:
context: .
dockerfile: .deploy/admin-web-angular/Dockerfile
environment:
NODE_ENV: production
restart: on-failure
depends_on:
- core
ports:
- 4200:4200
networks:
- overlay
shop-web:
container_name: shop-web
image: ever-shop-web:latest
command: yarn run:shopweb
build:
context: .
dockerfile: .deploy/shop-web-angular/Dockerfile
environment:
NODE_ENV: production
restart: on-failure
depends_on:
- core
ports:
- 3000:3000
networks:
- overlay
carrier-mobile:
container_name: carrier-mobile
image: ever-carrier-mobile:latest
command: yarn run:carrier
build:
context: .
dockerfile: .deploy/carrier-mobile-ionic/Dockerfile
environment:
NODE_ENV: production
restart: on-failure
depends_on:
- core
ports:
- 4203:4200
- 4204:4203
networks:
- overlay
shop-mobile:
container_name: shop-mobile
image: ever-shop-mobile:latest
command: yarn run:shopmobile
build:
context: .
dockerfile: .deploy/shop-mobile-ionic/Dockerfile
environment:
NODE_ENV: production
restart: on-failure
depends_on:
- core
ports:
- 4201:4201
networks:
- overlay
merchant-mobile:
container_name: merchant-mobile
image: ever-merchant-mobile:latest
command: yarn run:merchant
build:
context: .
dockerfile: .deploy/merchant-tablet-ionic/Dockerfile
environment:
NODE_ENV: production
restart: on-failure
depends_on:
- core
ports:
- 4202:4202
networks:
- overlay
core:
container_name: core
image: ever-core:latest
build:
context: .
dockerfile: .deploy/core/Dockerfile
environment:
NODE_ENV: production
WAIT_HOSTS: mongo:27017
DB_URI: mongodb://mongo/ever_development
TESTING_DB_URI: mongodb://mongo/ever_testing
restart: on-failure
depends_on:
- mongo
links:
- mongo
volumes:
- .:/srv/ever
- root_node_modules:/srv/ever/node_modules
- core_node_modules:/srv/ever/packages/core/node_modules
ports:
- 5500:5500
- 5501:5501
- 5050:5050
- 5555:5555
networks:
- overlay
volumes:
root_node_modules:
core_node_modules:
certificates:
mongo_data:
networks:
overlay:
driver: bridge