当前位置:   article > 正文

Docker-compose安装ELK(单节点)_elasticsearch 8.5.3 单节点 docker-compose

elasticsearch 8.5.3 单节点 docker-compose

Docker-compose安装ELK(单节点)

version: "3"

services:
  elasticsearch:
    image: elasticsearch:8.5.3
    container_name: elasticsearch8.5.3
    environment:
      ES_JAVA_OPTS: -Xms1024m -Xmx1024m
      discovery.type: single-node
    volumes:
      - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
      - ./elasticsearch/config/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
      - ./elasticsearch/data:/usr/share/elasticsearch/data
      - ./elasticsearch/logs:/usr/share/elasticsearch/logs
    ports:
      - "9200:9200"
      - "9300:9300"
    networks:
      - elk_853
  logstash:
    image: logstash:8.5.3
    container_name: logstash8.5.3
    environment:
      ES_JAVA_OPTS: -Xms512m -Xmx512m
    volumes:
      - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
      - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
      - ./logstash/config/log4j2.properties:/usr/share/logstash/config/log4j2.properties:ro
    ports:
      - "5000:5000"
      - "5002:5002"
      - "5004:5004"
      - "5006:5006"
    networks:
      - elk_853
    depends_on:
      - elasticsearch
  kibana:
    image: kibana:8.5.3
    container_name: kibana8.5.3
    volumes:
      - ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
    ports:
      - "5601:5601"
    networks:
      - elk_853
    depends_on:
      - elasticsearch
networks:
  elk_853:



#docker cp b24aa7e3fc1f:/usr/share/elasticsearch/config/elasticsearch.yml ./elasticsearch/config/temp
#docker cp f957ac9ec5d3:/usr/share/elasticsearch/config/log4j2.properties ./elasticsearch/config
#docker cp f957ac9ec5d3:/usr/share/elasticsearch/data ./elasticsearch
#docker cp f957ac9ec5d3:/usr/share/elasticsearch/logs ./elasticsearch
#
#
#docker cp 46bc11d3aa29:/usr/share/kibana/config/kibana.yml ./kibana/config
#
#docker cp 6e4595283e83:/usr/share/logstash/config/logstash.yml ./logstash/config
#docker cp 6e4595283e83:/usr/share/logstash/pipeline ./logstash
#docker cp 6e4595283e83:/usr/share/logstash/config/log4j2.properties ./logstash/config
  • 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
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/992951
推荐阅读
相关标签
  

闽ICP备14008679号