generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.yml
220 lines (218 loc) · 4.71 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
version: '3.4'
services:
database:
restart: always
environment:
- DATABASE_WEB_HOSTNAMES=${TRADERX_FQDN:-localhost}
image: database
build:
context: database
dockerfile: Dockerfile
working_dir: /database
expose:
- 18082
- 18083
- 18084
ports:
- 18082:18082
- 18083:18083
- 18084:18084
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: ./run.sh
networks:
- localnet
reference-data:
restart: always
image: reference-data
build:
context: reference-data
dockerfile: Dockerfile
working_dir: /reference-data
expose:
- 18085
ports:
- 18085:18085
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: npm run start
networks:
- localnet
trade-feed:
restart: always
image: trade-feed
build:
context: trade-feed
dockerfile: Dockerfile
working_dir: /trade-feed
expose:
- 18086
ports:
- 18086:18086
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: npm run start
networks:
- localnet
people-service:
restart: always
image: people-service
build:
context: people-service
dockerfile: Dockerfile
working_dir: /people-service
expose:
- 18089
ports:
- 18089:18089
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: /PeopleService.WebApi dotnet run
networks:
- localnet
account-service:
restart: always
image: account-service
build:
context: account-service
dockerfile: Dockerfile
working_dir: /account-service
expose:
- 18088
ports:
- 18088:18088
environment:
- DATABASE_TCP_HOST=database
- PEOPLE_SERVICE_HOST=people-service
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: ./gradlew bootRun
networks:
- localnet
depends_on:
- database
- people-service
position-service:
restart: always
image: position-service
build:
context: position-service
dockerfile: Dockerfile
working_dir: /position-service
expose:
- 18090
ports:
- 18090:18090
environment:
- DATABASE_TCP_HOST=database
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: ./gradlew bootRun
networks:
- localnet
depends_on:
- database
trade-service:
restart: always
image: trade-service
build:
context: trade-service
dockerfile: Dockerfile
working_dir: /trade-service
expose:
- 18092
ports:
- 18092:18092
environment:
- DATABASE_TCP_HOST=database
- PEOPLE_SERVICE_HOST=people-service
- ACCOUNT_SERVICE_HOST=account-service
- REFERENCE_DATA_HOST=reference-data
- TRADE_FEED_HOST=trade-feed
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: ./gradlew bootRun
networks:
- localnet
depends_on:
- database
- people-service
- account-service
- reference-data
- trade-feed
trade-processor:
restart: always
image: trade-processor
build:
context: trade-processor
dockerfile: Dockerfile
working_dir: /trade-processor
expose:
- 18091
ports:
- 18091:18091
environment:
- DATABASE_TCP_HOST=database
- TRADE_FEED_HOST=trade-feed
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: ./gradlew bootRun
networks:
- localnet
depends_on:
- database
- trade-feed
web-front-end-angular:
restart: always
image: web-front-end-angular
build:
context: web-front-end/angular
dockerfile: Dockerfile
working_dir: /web-front-end/angular
expose:
- 18093
ports:
- 18093:18093
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
command: npm run start
networks:
- localnet
depends_on:
- database
- trade-feed
ingress:
image: ingress
build:
context: ingress
dockerfile: Dockerfile
args:
- NGINX_HOST=${TRADERX_FQDN:-localhost}
working_dir: /ingress
expose:
- 8080
ports:
- 8080:8080
networks:
- localnet
depends_on:
- database
- trade-feed
- people-service
- account-service
- position-service
- trade-service
- trade-processor
- web-front-end-angular
networks:
localnet:
driver: bridge