-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
234 lines (213 loc) · 5.77 KB
/
compose.dev.yaml
File metadata and controls
234 lines (213 loc) · 5.77 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
x-service: &default-service
restart: always
x-feature-flag-service: &feature-flag-service-env
FEATURE_FLAG_SERVICE_PROTOCOL: http
FEATURE_FLAG_SERVICE_BASE_URL: feature-flag-service
FEATURE_FLAG_SERVICE_PORT: 8080
x-connection-strings:
JAVA_CONNECTION_STRING: &java-connection-string jdbc:sqlserver://db:1433;database=TradeManagement;user=sa;password=yourStrong(!)Password;encrypt=false;trustServerCertificate=false;loginTimeout=30;
DOTNET_CONNECTION_STRING: &dotnet-connection-string Data Source=db;Initial Catalog=TradeManagement;Persist Security Info=True;User ID=sa;Password=yourStrong(!)Password;TrustServerCertificate=true
GO_CONNECTION_STRING: &go-connection-string sqlserver://sa:yourStrong(!)Password@db:1433?database=TradeManagement&connection+encrypt=false&connection+TrustServerCertificate=false&connection+loginTimeout=30
x-rabbit-vars: &rabbit-vars
RABBITMQ_USER: userxxx
RABBITMQ_PASSWORD: passxxx
RABBITMQ_PORT: "5672"
RABBITMQ_HOST: rabbitmq
RABBITMQ_QUEUE: Trade_Data_Raw
services:
db:
<<: *default-service
build: src/db
ports:
- 1433:1433
environment:
SA_PASSWORD: yourStrong(!)Password
contentcreator:
<<: *default-service
build: src/contentcreator
depends_on:
- db
environment:
MSSQL_CONNECTIONSTRING: *java-connection-string
manager:
<<: *default-service
build: src/manager/easyTradeManager
depends_on:
- db
ports:
- 8081:8080
environment:
MSSQL_CONNECTIONSTRING: *dotnet-connection-string
PROXY_PREFIX: manager
pricing-service:
<<: *default-service
build: src/pricing-service
depends_on:
- db
- rabbitmq
ports:
- 8083:8080
environment:
MSSQL_CONNECTIONSTRING: *go-connection-string
PROXY_PREFIX: pricing-service
<<: *rabbit-vars
broker-service:
<<: *default-service
build: src/broker-service
ports:
- 8084:8080
depends_on:
- db
- accountservice
- pricing-service
- feature-flag-service
environment:
ACCOUNTSERVICE_HOSTANDPORT: accountservice:8080
PRICINGSERVICE_HOSTANDPORT: pricing-service:8080
ENGINE_HOSTANDPORT: engine:8080
<<: *feature-flag-service-env
PROXY_PREFIX: broker-service
MSSQL_CONNECTIONSTRING: *dotnet-connection-string
rabbitmq:
<<: *default-service
build: src/rabbitmq
ports:
- 8082:15672
calculationservice:
<<: *default-service
build: src/calculationservice
depends_on:
- rabbitmq
environment:
<<: *rabbit-vars
frontend:
<<: *default-service
build:
context: src/frontend
dockerfile: Dockerfile.dev
# dockerfile: Dockerfile
# depends_on:
# - broker-service
# - loginservice
# - pricing-service
# - accountservice
# - credit-card-order-service
ports:
- 8092:3000
volumes:
- ./src/frontend/src:/app/src:ro
loginservice:
<<: *default-service
build: src/loginservice
environment:
MSSQL_CONNECTIONSTRING: *dotnet-connection-string
PROXY_PREFIX: loginservice
depends_on:
- db
ports:
- 8086:8080
frontendreverseproxy:
<<: *default-service
build: src/frontendreverseproxy
depends_on:
- broker-service
- frontend
- loginservice
- pricing-service
- feature-flag-service
- offerservice
- accountservice
- engine
- credit-card-order-service
- third-party-service
ports:
- 80:80
loadgen:
<<: *default-service
build: src/loadgen
depends_on:
- frontendreverseproxy
environment:
EASYTRADE_URL: http://frontendreverseproxy
offerservice:
<<: *default-service
build: src/offerservice
depends_on:
- loginservice
- manager
- feature-flag-service
ports:
- 8087:8080
environment:
<<: *feature-flag-service-env
LOGIN_SERVICE_PORT: 8080
LOGIN_SERVICE_BASE_URL: loginservice
MANAGER_BASE_URL: manager
MANAGER_PORT: 8080
accountservice:
<<: *default-service
build: src/accountservice
depends_on:
- manager
ports:
- 8089:8080
environment:
MANAGER_HOSTANDPORT: manager:8080
PROXY_PREFIX: accountservice
engine:
<<: *default-service
build: src/engine
depends_on:
- broker-service
ports:
- 8090:8080
environment:
BROKER_HOSTANDPORT: broker-service:8080
PROXY_PREFIX: engine
credit-card-order-service:
<<: *default-service
build: src/credit-card-order-service
depends_on:
- db
- third-party-service
ports:
- 8091:8080
environment:
PROXY_PREFIX: credit-card-order-service
MSSQL_CONNECTIONSTRING: *java-connection-string
THIRD_PARTY_SERVICE_HOSTANDPORT: third-party-service:8080
<<: *feature-flag-service-env
WORK_DELAY: 30
WORK_RATE: 30
JAVA_TOOL_OPTIONS: "-XX:-OmitStackTraceInFastThrow"
third-party-service:
<<: *default-service
build: src/third-party-service
ports:
- 8093:8080
environment:
<<: *feature-flag-service-env
PROXY_PREFIX: third-party-service
CREDIT_CARD_ORDER_SERVICE_HOSTANDPORT: credit-card-order-service:8080
COURIER_DELAY: 10
COURIER_RATE: 10
MANUFACTURE_DELAY: 10
MANUFACTURE_RATE: 10
feature-flag-service:
<<: *default-service
build: src/feature-flag-service
ports:
- 8094:8080
environment:
PROXY_PREFIX: feature-flag-service
# ENABLE_MODIFY: "false"
# ENABLE_FRONTEND_MODIFY: "false"
aggregator-service:
<<: *default-service
build: src/aggregator-service
depends_on:
- offerservice
environment:
OFFER_SERVICE_PROTOCOL: http
OFFER_SERVICE_HOST: offerservice
OFFER_SERVICE_PORT: 8080