docker部署elk
2017-12-12 本文已影响35人
xi4okv
version: '2'
services:
kibana:
image: kibana:4.5
links:
- es
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://es:9200
es:
image: elasticsearch:2.3
ports:
- "9200:9200"
logstash:
image: logstash:2.3
ports:
- "3456:3456"
command: logstash -e 'input { http { port => 3456 } } output {elasticsearch { hosts => [es] }}'