-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.22 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
version: "3.0"
services:
elasticsearch:
image: elasticsearch:7.0.1
# NOTE: the default vm.max_map_count maynot be enough to
# run elasticsearch increase it to at least 262144
# sudo sysctl vm.max_map_count=262144
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
networks:
- logging
# deploy:
# placement:
# constraints:
# - node.role == manager
kibana:
image: kibana:7.0.1
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
networks:
- logging
ports:
- "5601:5601"
logstash:
image: logstash:7.0.1
# NOTE: logstash isn't updating ES with command, might be an entry script bug
# command: -f /config-dir/apache.conf --log.level debug --config.debug
#entrypoint: logstash -e 'input { gelf { port => 4560 } } output { elasticsearch { hosts => ["elasticsearch:9200"] } stdout { codec => rubydebug } }'
entrypoint: logstash -f /etc/logstash/conf.d/logstash.conf
volumes:
- ${PWD}/logstash/config/:/etc/logstash/conf.d
networks:
- logging
# deploy:
# mode: global
ports:
- "4560:4560/udp"
networks:
logging:
volumes:
esdata: