forked from fairfaxmedia/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (48 loc) · 1.01 KB
/
docker-compose.yaml
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
version: '2.4'
services:
logstash:
build: .
mem_limit: 1G
cpu_shares: 2048
ports:
- '8080'
depends_on:
- elasticsearch
command: [
"-e",
"input { http { } } output { elasticsearch { hosts => 'http://elasticsearch' } }"
]
exporter:
image: alxrem/prometheus-logstash-exporter
ports:
- '9304'
command:
- "-logstash.host"
- "logstash"
depends_on:
- logstash
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1
cpu_shares: 4096
environment:
discovery.type: single-node
xpack.monitoring.collection.enabled: 'true'
bootstrap.memory_lock: 'true'
ES_JAVA_OPTS: -XshowSettings:vm
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ports:
- '9200'
kibana:
image: docker.elastic.co/kibana/kibana:6.5.1
ports:
- '5601'
depends_on:
- elasticsearch
volumes:
elasticsearch:
driver: local