-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
248 lines (233 loc) · 7.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
248 lines (233 loc) · 7.09 KB
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
services:
postgres-auth:
image: postgres:16
container_name: matchsentinel-postgres-auth
environment:
POSTGRES_DB: matchsentinel_auth
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
volumes:
- postgres_auth_data:/var/lib/postgresql/data
postgres-transaction:
image: postgres:16
container_name: matchsentinel-postgres-transaction
environment:
POSTGRES_DB: matchsentinel_transaction
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5434:5432"
volumes:
- postgres_transaction_data:/var/lib/postgresql/data
postgres-rule-engine:
image: postgres:16
container_name: matchsentinel-postgres-rule-engine
environment:
POSTGRES_DB: matchsentinel_rule_engine
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5435:5432"
volumes:
- postgres_rule_engine_data:/var/lib/postgresql/data
postgres-case:
image: postgres:16
container_name: matchsentinel-postgres-case
environment:
POSTGRES_DB: matchsentinel_cases
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5436:5432"
volumes:
- postgres_case_data:/var/lib/postgresql/data
postgres-notification:
image: postgres:16
container_name: matchsentinel-postgres-notification
environment:
POSTGRES_DB: matchsentinel_notifications
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5437:5432"
volumes:
- postgres_notification_data:/var/lib/postgresql/data
postgres-reporting:
image: postgres:16
container_name: matchsentinel-postgres-reporting
environment:
POSTGRES_DB: matchsentinel_reporting
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5438:5432"
volumes:
- postgres_reporting_data:/var/lib/postgresql/data
postgres-ai:
image: postgres:16
container_name: matchsentinel-postgres-ai
environment:
POSTGRES_DB: matchsentinel_ai
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5439:5432"
volumes:
- postgres_ai_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management
container_name: matchsentinel-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
auth-service:
build:
context: ./services/auth-service
dockerfile: Dockerfile
container_name: matchsentinel-auth-service
environment:
SPRING_PROFILES_ACTIVE: prod
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-auth:5432/matchsentinel_auth
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
AUTH_DB_URL: jdbc:postgresql://postgres-auth:5432/matchsentinel_auth
AUTH_DB_USER: postgres
AUTH_DB_PASSWORD: postgres
AUTH_JWT_SECRET: change-me-please-change-me-please-change-me-please
AUTH_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8081
ports:
- "8081:8081"
depends_on:
- postgres-auth
- rabbitmq
transaction-service:
build:
context: ./services/transaction-service/
dockerfile: Dockerfile
container_name: matchsentinel-transaction-service
environment:
SPRING_PROFILES_ACTIVE: prod
TRANSACTION_DB_URL: jdbc:postgresql://postgres-transaction:5432/matchsentinel_transaction
TRANSACTION_DB_USER: postgres
TRANSACTION_DB_PASSWORD: postgres
RABBITMQ_HOST: rabbitmq
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
APP_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8082
ports:
- "8082:8082"
depends_on:
- postgres-transaction
- rabbitmq
rule-engine-service:
build:
context: ./services/rule-engine-service
dockerfile: Dockerfile
container_name: matchsentinel-rule-engine-service
environment:
SPRING_PROFILES_ACTIVE: prod
RULE_ENGINE_DB_URL: jdbc:postgresql://postgres-rule-engine:5432/matchsentinel_rule_engine
RULE_ENGINE_DB_USER: postgres
RULE_ENGINE_DB_PASSWORD: postgres
RABBITMQ_HOST: rabbitmq
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
APP_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8083
ports:
- "8083:8083"
depends_on:
- postgres-rule-engine
- rabbitmq
case-service:
build:
context: ./services/case-service
dockerfile: Dockerfile
container_name: matchsentinel-case-service
environment:
SPRING_PROFILES_ACTIVE: prod
CASE_DB_URL: jdbc:postgresql://postgres-case:5432/matchsentinel_cases
CASE_DB_USER: postgres
CASE_DB_PASSWORD: postgres
RABBITMQ_HOST: rabbitmq
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
APP_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8084
ports:
- "8084:8084"
depends_on:
- postgres-case
- rabbitmq
notification-service:
build:
context: ./services/notification-service
dockerfile: Dockerfile
container_name: matchsentinel-notification-service
environment:
SPRING_PROFILES_ACTIVE: prod
NOTIFICATION_DB_URL: jdbc:postgresql://postgres-notification:5432/matchsentinel_notifications
NOTIFICATION_DB_USER: postgres
NOTIFICATION_DB_PASSWORD: postgres
RABBITMQ_HOST: rabbitmq
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
APP_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8085
ports:
- "8085:8085"
depends_on:
- postgres-notification
- rabbitmq
reporting-service:
build:
context: ./services/reporting-service
dockerfile: Dockerfile
container_name: matchsentinel-reporting-service
environment:
SPRING_PROFILES_ACTIVE: prod
REPORTING_DB_URL: jdbc:postgresql://postgres-reporting:5432/matchsentinel_reporting
REPORTING_DB_USER: postgres
REPORTING_DB_PASSWORD: postgres
RABBITMQ_HOST: rabbitmq
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
APP_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8086
ports:
- "8086:8086"
depends_on:
- postgres-reporting
- rabbitmq
ai-service:
build:
context: ./services/ai-service
dockerfile: Dockerfile
container_name: matchsentinel-ai-service
environment:
SPRING_PROFILES_ACTIVE: prod
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-ai:5432/matchsentinel_ai
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_RABBITMQ_USER: guest
SPRING_RABBITMQ_PASSWORD: guest
APP_CORS_ALLOWED_ORIGINS: http://localhost:5173,http://localhost:3000
SERVER_PORT: 8087
ports:
- "8087:8087"
depends_on:
- postgres-ai
- rabbitmq
volumes:
postgres_auth_data:
postgres_transaction_data:
postgres_rule_engine_data:
postgres_case_data:
postgres_notification_data:
postgres_reporting_data:
postgres_ai_data: