-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-suite-min.yml
163 lines (162 loc) · 4.03 KB
/
docker-compose-suite-min.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
version: '2.2'
services:
elasticsearch:
image: elasticsearch:5.6
restart: on-failure
networks:
conductor-boot-nw:
aliases:
- elasticsearch
depends_on:
mysql:
condition: service_healthy
ports:
- 9200:9200
- 9300:9300
healthcheck:
test: ["CMD", "curl","-I" ,"-XGET", "http://localhost:9200/_cat/health"]
interval: 30s
timeout: 30s
retries: 15
mem_limit: "3096000000"
volumes:
- es_data:/usr/share/elasticsearch/data:rw
mysql:
image: mysql:5.7
restart: on-failure
networks:
conductor-boot-nw:
aliases:
- mysql
ports:
- 3306:3306
- 33060:33060
environment:
MYSQL_ROOT_PASSWORD: Root@1234
MYSQL_DATABASE: conductor
MYSQL_USER: conductor
MYSQL_PASSWORD: Conductor@1234
MYSQL_INITDB_SKIP_TZINFO: NONE
LOGSPOUT: ignore
healthcheck:
test: [ "CMD-SHELL", 'mysqladmin ping' ]
interval: 30s
timeout: 30s
retries: 15
mem_limit: "512000000"
volumes:
- mysql_data:/var/lib/mysql
conductor-boot:
image: conductor-boot:latest
build:
context: .
restart: on-failure
depends_on:
mysql:
condition: service_healthy
elasticsearch:
condition: service_healthy
networks:
conductor-boot-nw:
aliases:
- conductor-boot
ports:
- 8080:8080
environment:
MYSQL_DATABASE_HOST: mysql
MYSQL_DATABASE_PORT: 3306
MYSQL_DATABASE: conductor
MYSQL_USER: conductor
MYSQL_PASSWORD: Conductor@1234
ELASTICSEARCH_URL: http://elasticsearch:9200
SPRING_PROFILES_ACTIVE: basic,mysql,external-elasticsearch,embedded-oauth2,security,conductor
healthcheck:
test: ["CMD", "curl","-I" ,"-XGET", "http://localhost:8080/api/health"]
interval: 30s
timeout: 30s
retries: 15
mem_limit: "1536000000"
kibana:
image: kibana:5.6.16
restart: on-failure
links:
- elasticsearch
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
LOGSPOUT: ignore
ports:
- 5601:5601
healthcheck:
test: [ "CMD", "curl","-I" ,"-XGET", "http://localhost:5601/status" ]
interval: 60s
timeout: 30s
retries: 15
depends_on:
elasticsearch:
condition: service_healthy
conductor-boot:
condition: service_healthy
networks:
conductor-boot-nw:
aliases:
- conductor-boot
logstash:
image: logstash:5.6.8
restart: on-failure
environment:
STDOUT: "true"
LOGSPOUT: ignore
http.host: 0.0.0.0
ports:
- 5000:5000
- 9600:9600
links:
- elasticsearch
depends_on:
elasticsearch:
condition: service_healthy
conductor-boot:
condition: service_healthy
command: 'logstash -e "input { udp { port => 5000 } } filter { grok { match => { message => \"\A\[%{LOGLEVEL:LOG_LEVEL}%{SPACE}]%{SPACE}%{TIMESTAMP_ISO8601:LOG_TIMESTAMP}%{SPACE}%{NOTSPACE:JAVA_CLASS}%{SPACE}-%{SPACE}%{GREEDYDATA:LOG_MESSAGE}\" } } } output { elasticsearch { hosts => elasticsearch } }"'
networks:
conductor-boot-nw:
aliases:
- conductor-boot
logspout:
image: gliderlabs/logspout:v3
restart: on-failure
command: 'udp://logstash:5000'
links:
- logstash
volumes:
- '/var/run/docker.sock:/tmp/docker.sock'
environment:
LOGSPOUT: ignore
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_started
logstash:
condition: service_started
conductor-boot:
condition: service_healthy
networks:
conductor-boot-nw:
aliases:
- conductor-boot
volumes:
es_data:
driver: local
driver_opts:
type: none
device: $PWD/container/persistence/elasticsearch
o: bind
mysql_data:
driver: local
driver_opts:
type: none
device: $PWD/container/persistence/mysql
o: bind
networks:
conductor-boot-nw: