-
Notifications
You must be signed in to change notification settings - Fork 516
/
docker-compose.yml
84 lines (83 loc) · 2.36 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
version: '2'
services:
microtrader-dashboard:
build:
context: ../../
dockerfile: docker/release/Dockerfile.dashboard
args:
app_version: ${APP_VERSION}
dns_search: .
environment:
HTTP_PORT: ${HTTP_PORT}
MARKET_DATA_ADDRESS: ${MARKET_DATA_ADDRESS}
PORTFOLIO_ADDRESS: portfolio
JAVA_TOOL_OPTIONS: "-Xms256m -Xmx1g"
ports:
- "${HTTP_PORT}"
microtrader-quote:
build:
context: ../../
dockerfile: docker/release/Dockerfile.quote
args:
app_version: ${APP_VERSION}
dns_search: .
environment:
HTTP_ROOT: ${QUOTE_HTTP_ROOT}
HTTP_HOST: microtrader-quote
HTTP_PORT: ${HTTP_PORT}
MARKET_DATA_ADDRESS: ${MARKET_DATA_ADDRESS}
MARKET_PERIOD: ${MARKET_PERIOD}
ports:
- "${HTTP_PORT}"
microtrader-portfolio:
build:
context: ../../
dockerfile: docker/release/Dockerfile.portfolio
args:
app_version: ${APP_VERSION}
dns_search: .
ports:
- "${HTTP_PORT}"
microtrader-audit:
build:
context: ../../
dockerfile: docker/release/Dockerfile.audit
args:
app_version: ${APP_VERSION}
dns_search: .
environment:
HTTP_ROOT: ${AUDIT_HTTP_ROOT}
HTTP_HOST: microtrader-audit
HTTP_PORT: ${HTTP_PORT}
HTTP_PUBLIC_PORT: ${HTTP_PORT}
JDBC_URL: jdbc:mysql://db/${DB_NAME}?useSSL=false
JDBC_USER: ${DB_USER}
JDBC_PASSWORD: ${DB_PASSWORD}
JDBC_DRIVERCLASS: com.mysql.jdbc.Driver
DB_MIGRATIONS_LOCATION: db/mysql
PORTFOLIO_ADDRESS: portfolio
ports:
- "${HTTP_PORT}"
db:
build:
context: .
dockerfile: Dockerfile.mysql
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
specs:
build:
context: ../../
dockerfile: docker/release/Dockerfile.specs
environment:
QUOTE_URL: http://microtrader-quote:${HTTP_PORT}/${QUOTE_HTTP_ROOT}
AUDIT_URL: http://microtrader-audit:${HTTP_PORT}/${AUDIT_HTTP_ROOT}
DASHBOARD_URL: http://microtrader-dashboard:${HTTP_PORT}/
EVENT_BUS_URL: http://microtrader-dashboard:${HTTP_PORT}/eventbus/
JUNIT_REPORT_PATH: /reports/acceptance.xml
JUNIT_REPORT_STACK: 1
command:
- "--reporter"
- "mocha-jenkins-reporter"