-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.91 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
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.2
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
logstash:
image: docker.elastic.co/logstash/logstash-oss:6.2.2
ports:
- "5000:5000"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch
volumes:
# Change which Logstash pipeline to load here by uncommenting ONE of the 'pipeline' volume mounts
# - ./logstash/pipeline/file.conf:/usr/share/logstash/pipeline/file.conf
# - ./logstash/pipeline/mysql.conf:/usr/share/logstash/pipeline/mysql.conf
# - ./logstash/pipeline/s3.conf:/usr/share/logstash/pipeline/s3.conf
# - ./logstash/pipeline/kafka.conf:/usr/share/logstash/pipeline/kafka.conf
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/data/access_log:/usr/share/logstash/data/access_log:ro
- ./mysql/:/tmp/java
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.2.2
ports:
- "5601:5601"
# volumes:
# - ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
db:
image: mysql/mysql-server:5.7.20
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ./movie-data/ml-100k:/tmp/data
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:1.0.0
ports:
- "9092:9092"
environment:
KAFKA_CREATE_TOPICS: "kafka-logs"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- ./logstash/data:/tmp/data
depends_on:
- zookeeper