docker-compos安装部署elasticsearch和kibana

elasticsearch和kibana安装部署

version: "3.4"
services:
  elasticsearch:
    image: docker.das-security.cn/middleware/elasticsearch:7.17.18
    container_name: elasticsearch
    environment:
      - discovery.type=single-node
      - xpack.security.enabled=true
      - xpack.security.audit.enabled=true
      - ingest.geoip.downloader.enabled=false
      - ELASTIC_USERNAME=elastic
      - ELASTIC_PASSWORD=密码
      - "ES_JAVA_OPTS=-Xms2048m -Xmx2048m"
    volumes:
      - /etc/localtime:/etc/localtime
      - ./elasticsearch/data:/usr/share/elasticsearch/data
      - ./elasticsearch/plugins:/usr/share/elasticsearch/plugins
    restart: always
    ports:
      - 9200:9200
  kibana:
    image: docker.das-security.cn/middleware/kibana:7.17.18
    container_name: kibana
    environment:
      - ELASTICSEARCH_URL=http://elasticsearch:9200
      - ELASTICSEARCH_USERNAME=elastic
      - ELASTICSEARCH_PASSWORD=密码
    volumes:
      - /etc/localtime:/etc/localtime
    depends_on:
      - elasticsearch
    restart: always
    ports:
      - 5601:5601
上一篇:鸿蒙ArkTS实用开发技巧: 提高效率的关键知识点


下一篇:服务器开放ftp端口可能会被攻击吗?