-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
150 lines (150 loc) · 5.92 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
version: '3'
services:
measure-reverse-proxy:
container_name: measure-reverse-proxy
build:
context: ./measure-reverse-proxy
networks:
- default
expose:
- 80
ports:
- 80:80
measureplatform-app:
container_name: measureplatform-app
build:
context: ./measure-platform
entrypoint: ["./wait-for-it.sh", "mysql-db:3306", "--", "java","-jar","measure-platform-1.0.2.war"]
networks:
- default
depends_on:
- measure-reverse-proxy
- mysql-db
- elasticsearch
- kibana
environment:
## The Host IP address configuration (optional)
# - HOST_IP_ADDR=
## Docker base image jvm memory allocation (optional)
# - _JAVA_OPTIONS=-Xmx512m -Xms256m
## Spring data jpa configuration (optional)
# - SPRING_DATASOURCE_URL=jdbc:mysql://mysql-db:3306/measureplatform?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true
# - MYSQL_USER=root
# - MYSQL_ALLOW_EMPTY_PASSWORD=yes
# - MYSQL_DRIVER=com.mysql.jdbc.Driver
## MeasurePlatform packaging (optional)
# - ZIP_URL=https://github.com/measureproduct/MeasurePlatform/releases/download/MeasurePlatform-1.0.2/MeasurePlatform.V1.0.2.zip
# - ZIP_FILE=MeasurePlatform.V1.0.2.zip
# - JAR_FILE=measure-platform-1.0.2.war
## Datasource catalogue (optional)
# - ZIP_CATALOGUE_URL=https://github.com/measureproduct/DataSourceCatalog/releases/download/v1.0.0/DataSourceCatalog.zip
# - ZIP_CATALOGUE_FILE=DataSourceCatalog.zip
## Datasources storage path (optional)
# - MEASURE_PLATFORM_STORAGE_MEASURE=/home/PackagedPlatform/storage/measures
# - MEASURE_PLATFORM_STORAGE_APPLICATION=/home/PackagedPlatform/storage/applications
## Elasticsearch configuration (It should take the value of the elasticsearch environment variable "cluster.name")
- ELASTICSEARCH_CLUSTER_NAME=docker-cluster
## Mailing service configuration (mandatory)
- SPRING_MAIL_USERNAME=
- SPRING_MAIL_PASSWORD=
- SPRING_MAIL_HOST=
- SPRING_MAIL_PORT=
- SPRING_MAIL_PROTOCOL=
- SPRING_MAIL_TLS=
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=
- SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_TRUST=
volumes:
- measuresdata:/home/PackagedPlatform/storage/measures
expose:
- 8080
qualityguard-app:
container_name: qualityguard-app
build:
context: ./qualityguard
entrypoint: ["./wait-for-it.sh", "mysql-db:3306", "--", "java","-jar","quality-guard-analysis-1.2.0.war"]
networks:
- default
depends_on:
- measure-reverse-proxy
- measureplatform-app
- mysql-db
- elasticsearch
- kibana
environment:
## The Host IP address configuration (optional)
# - HOST_IP_ADDR=
## Docker base image jvm memory allocation (optional)
# - _JAVA_OPTIONS=-Xmx512m -Xms256m
## Spring data jpa configuration (optional)
# - SPRING_DATASOURCE_URL=jdbc:mysql://mysql-db:3306/qualityguard?useUnicode=true&characterEncoding=utf8&useSSL=false
# - MYSQL_USER=root
# - MYSQL_ALLOW_EMPTY_PASSWORD=yes
# - MYSQL_DRIVER=com.mysql.jdbc.Driver
## QualityGuard packaging (optional)
# - ZIP_URL=https://github.com/measureproduct/QualityGuard/releases/download/v1.2.0/quality-guard-v1.2.0.zip
# - ZIP_FILE=quality-guard-v1.2.0.zip
# - JAR_FILE=quality-guard-analysis-1.2.0.war
## MeasurePlatform administrator (optional)
# - MEASURE_PLATFORM_LOGIN=admin
# - MEASURE_PLATFORM_PASSWORD=admin
## Elasticsearch configuration (It should take the value of the elasticsearch environment variable "cluster.name")
- ELASTICSEARCH_CLUSTER_NAME=docker-cluster
expose:
- 8085
mysql-db:
container_name: mysql-db
image: mysql:5.7
depends_on:
- measure-reverse-proxy
networks:
- default
environment:
## MySQL server configuration (mandatory)
- MYSQL_USER=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=measureplatform
volumes:
- ./data/sql-scripts:/docker-entrypoint-initdb.d/
- mysqldata:/var/lib/mysql/
expose:
- 3306
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8mb4 --explicit_defaults_for_timestamp
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
depends_on:
- measure-reverse-proxy
networks:
- default
environment:
cluster.name: docker-cluster
ES_JAVA_OPTS: -Xms2g -Xmx2g
discovery.type: single-node
volumes:
- esdata:/usr/share/elasticsearch/data
expose:
- 9200
- 9300
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:6.5.4
depends_on:
- measure-reverse-proxy
networks:
- default
environment:
SERVER_HOST: 0.0.0.0
ELASTICSEARCH_URL: http://elasticsearch:9200
SERVER_BASEPATH: /kibana
depends_on:
- elasticsearch
expose:
- 5601
volumes:
esdata:
driver: local
mysqldata:
driver: local
measuresdata:
driver: local