elk7.6 部署

version: '2'
services:
  elasticsearch:
    image: elasticsearch:7.6.1
    ports:
      - "9200:9200"
      - "9300:9300"
    environment:
      discovery.type: single-node
  kibana:
    image: kibana:7.6.1
    environment:
      - I18N_LOCALE=zh-CN
      - XPACK_GRAPH_ENABLED=true
      - TIMELION_ENABLED=true
      - XPACK_MONITORING_COLLECTION_ENABLED="true"
    depends_on:
      - elasticsearch
    ports:
      - "5601:5601"
  logstash:
    image: logstash:7.6.1
    depends_on:
      - elasticsearch
    ports:
      - "9600:9600"
    stdin_open: true
    tty: true
    volumes:  
      - /root/projects/elk/logstansh.conf:/etc/logstash/conf.d/logstansh.conf
    entrypoint: logstash -e 'input { stdin{} }  output { elasticsearch {  hosts => ["elasticsearch:9200"] } }'

  

posted @ 2020-04-16 18:03  webzom  阅读(660)  评论(0)    收藏  举报