-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
116 lines (107 loc) · 2.37 KB
/
compose.yaml
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
networks:
friday:
name: friday
driver: bridge
services:
product-db:
container_name: product-db
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: Shashwat
MYSQL_PASSWORD: shashwat2001
MYSQL_DATABASE: product_microservice_db
expose:
- "3306"
ports:
- "9000:3306"
volumes:
- ./data/product:/var/lib/mysql
restart: always
networks:
- friday
order-db:
container_name: order-db
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: Shashwat
MYSQL_PASSWORD: shashwat2001
MYSQL_DATABASE: order_microservice_db
expose:
- "3306"
ports:
- "9001:3306"
volumes:
- ./data/order:/var/lib/mysql
restart: always
networks:
- friday
inventory-db:
container_name: inventory-db
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: Shashwat
MYSQL_PASSWORD: shashwat2001
MYSQL_DATABASE: inventory_microservice_db
expose:
- "3306"
ports:
- "9002:3306"
volumes:
- ./data/inventory:/var/lib/mysql
restart: always
networks:
- friday
discovery-service:
container_name: discovery-service
image: 2001shashwatrdr452/discovery-server
ports:
- "8761:8761"
networks:
- friday
api-gateway:
container_name: api-gateway
image: 2001shashwatrdr452/api-gateway
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- friday
depends_on:
- discovery-service
product-service:
container_name: product-service
image: 2001shashwatrdr452/product-service
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- friday
depends_on:
- discovery-service
- product-db
- api-gateway
order-service:
container_name: order-service
image: 2001shashwatrdr452/order-service
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- friday
depends_on:
- discovery-service
- order-db
- api-gateway
inventory-service:
container_name: inventory-service
image: 2001shashwatrdr452/inventory-service
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- friday
depends_on:
- discovery-service
- inventory-db
- api-gateway