-
Notifications
You must be signed in to change notification settings - Fork 107
/
docker-compose.deploy.yml
executable file
·104 lines (93 loc) · 1.83 KB
/
docker-compose.deploy.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
version: '3'
volumes:
product-node-modules:
user-node-modules:
order-node-modules:
product-db-data:
user-db-data:
order-db-data:
networks:
order-network:
driver: bridge
services:
frontend:
build:
context: .
ports:
- 80:5000
volumes:
- ./app:/app
restart: always
networks:
- order-network
product:
build:
context: ../product_service.git/
ports:
- 8081:5000
volumes:
- ../product_service.git/app:/app
- product-node-modules:/app/node_modules
links:
- product_db
depends_on:
- product_db
restart: always
networks:
- order-network
product_db:
image: mysql:5.7.22
volumes:
- product-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=product
restart: always
networks:
- order-network
user:
build:
context: ../user_service.git/
ports:
- 8082:5000
volumes:
- ../user_service.git/app:/app
- user-node-modules:/app/node_modules
depends_on:
- user_db
restart: always
networks:
- order-network
user_db:
image: mysql:5.7.22
volumes:
- user-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=user
restart: always
networks:
- order-network
order:
build:
context: ../order_service.git/
ports:
- 8083:5000
volumes:
- ../order_service.git/app:/app
- order-node-modules:/app/node_modules
depends_on:
- order_db
restart: always
networks:
- order-network
order_db:
image: mysql:5.7.22
volumes:
- order-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=order
restart: always
networks:
- order-network