forked from tkssharma/e-CommerseHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (102 loc) · 2.2 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
version: '3.5'
services:
gateway:
image: nginx:1.11
ports:
- 80:80
- 443:443
volumes:
- ./proxy/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./proxy/ssl:/etc/nginx/ssl:ro
depends_on:
- ms_commerce_auth
- ms_commerce_admin
- ms_commerce_client
networks:
- ms_network
ms_mysql:
container_name: ms_mysql
image: mysql:5.7
volumes:
- ~/datadir/mysql:/var/lib/mysql
ports:
- 3306:3306
- 33060:33060
environment:
MYSQL_ROOT_PASSWORD: root
networks:
- ms_network
ms_commerce_mongo:
image: mongo
container_name: ms_commerce_mongo
restart: unless-stopped
volumes:
- ~/datadir/mongo:/data/db
ports:
- 27017:27017
networks:
- ms_network
ms_commerce_auth:
container_name: ms_commerce_auth
build: ./e-Commerce-Auth/
image: e-commerce-auth
volumes:
- ./e-Commerce-Auth/:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3001:3001
- 9201:9201
depends_on:
- ms_mysql
networks:
- ms_network
ms_commerce_cart:
container_name: ms_commerce_cart
build: ./e-Commerce-Cart/
image: e-commerce-cart
volumes:
- ./e-Commerce-Cart/:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3004:3004
- 9204:9204
depends_on:
- ms_mysql
networks:
- ms_network
ms_commerce_admin:
build: ./e-Commerce-Admin/
image: e-commerce-admin
container_name: ms_commerce_admin
environment:
- NODE_ENV=local
volumes:
- ./e-Commerce-Admin/:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3002:3002
- 9202:9202
depends_on:
- ms_commerce_mongo
networks:
- ms_network
ms_commerce_client:
build: ./e-Commerce-Client/
image: e-commerce-client
container_name: ms_commerce_client
environment:
- NODE_ENV=local
volumes:
- ./e-Commerce-Client/:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3003:3003
depends_on:
- ms_commerce_admin
- ms_commerce_auth
networks:
- ms_network
networks:
ms_network:
driver: bridge
name: ms_network