-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
224 lines (224 loc) · 4.75 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
version: 0.0.1
services:
rabbit:
image: rabbitmq:3.12-management-alpine
hostname: rabbitmq
restart: always
ports:
- 15672:15672
- 5672:5672
networks:
- spring-cloud-network
eureka:
build: ./eureka-server
image: eureka:lts
container_name: eureka-server
ports:
- 8761:8761
restart: always
networks:
- spring-cloud-network
config:
build: ./config-server
image: config:lts
container_name: config-server
ports:
- 8081:8081
restart: always
networks:
- spring-cloud-network
gateway:
build: ./gateway
image: gateway:lts
container_name: gateway
ports:
- 5555:5555
restart: always
networks:
- spring-cloud-network
oauth2:
build: ./oauth2-auth-server
image: auth.server:lts
container_name: auth-server
ports:
- 9090:9090
restart: always
depends_on:
- auth-database
networks:
- spring-cloud-network
auth-database:
image: postgres
container_name: auth-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_auth_server
ports:
- 15000:5432
networks:
- spring-cloud-network
accounts:
build: ./account-service
image: accounts:lts
container_name: account-service
ports:
- 9092:9092
restart: always
depends_on:
- account-database
- config
networks:
- spring-cloud-network
account-database:
image: postgres
container_name: account-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_accounts
ports:
- 15001:5432
networks:
- spring-cloud-network
items:
build: ./item-service
image: items:lts
container_name: item-service
ports:
- 9091:9091
restart: always
depends_on:
- item-database
- config
networks:
- spring-cloud-network
item-database:
image: postgres
container_name: item-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_items
ports:
- 15002:5432
networks:
- spring-cloud-network
purchases:
build: ./purchase-service
image: purchases:lts
container_name: purchase-service
ports:
- 9096:9096
restart: always
depends_on:
- purchase-database
- config
networks:
- spring-cloud-network
purchase-database:
image: postgres
container_name: purchase-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_purchases
ports:
- 15003:5432
networks:
- spring-cloud-network
storages:
build: ./storage-service
image: storage:lts
container_name: storage-service
ports:
- 9097:9097
restart: always
depends_on:
- storage-database
- config
networks:
- spring-cloud-network
storage-database:
image: postgres
container_name: storage-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_storages
ports:
- 15004:5432
networks:
- spring-cloud-network
organizations:
build: ./organization-service
image: organizations:lts
container_name: organization-service
ports:
- 9094:9094
restart: always
depends_on:
- org-database
- config
networks:
- spring-cloud-network
org-database:
image: postgres
container_name: org-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_organizations
ports:
- 15005:5432
networks:
- spring-cloud-network
discounts:
build: ./discount-service
image: discounts:lts
container_name: discount-service
ports:
- 9093:9093
restart: always
depends_on:
- discount-database
- config
networks:
- spring-cloud-network
discount-database:
image: postgres
container_name: discount-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_discounts
ports:
- 15006:5432
networks:
- spring-cloud-network
comments:
build: ./comment-service
image: comments:lts
container_name: comment-service
ports:
- 9095:9095
restart: always
depends_on:
- comment-database
- config
networks:
- spring-cloud-network
comment-database:
image: postgres
container_name: comment-database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ruslan
POSTGRES_DB: ms_comments
ports:
- 15007:5432
networks:
- spring-cloud-network
networks:
spring-cloud-network:
driver: bridge