-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (59 loc) · 1.89 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
version: '2'
services:
db:
build: config/mysql/
container_name: db
volumes:
- ./config/mysql/mysql-docker.cnf:/etc/mysql/conf.d/z99-docker.cnf
- ./data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: mypassword
MYSQL_DATABASE: mydatabase
elasticsearch:
build: config/elasticsearch/
container_name: elasticsearch
volumes:
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./data/esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
logstash:
build: config/logstash/
container_name: logstash
volumes:
- ./config/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./config/logstash/pipeline/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
- ./config/logstash/catalogtemplate.json:/usr/share/logstash/catalogtemplate.json
- ./config/logstash/mysql-connector-java-5.1.42-bin.jar:/usr/share/logstash/mysql-connector-java-5.1.42-bin.jar
ports:
- "5000:5000"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
links:
- db
- elasticsearch
kibana:
build: config/kibana/
container_name: kibana
volumes:
- ./config/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- "5601:5601"
links:
- elasticsearch
volumes:
esdata:
driver: local
mysqldata:
driver: local