zoukankan      html  css  js  c++  java
  • 工作随笔——elasticsearch 6.6.1安装(docker-compose方式)

    docker-compose.yml:

    version: '2.2'
    services:
      es1:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
        container_name: es1
        environment:
          - bootstrap.memory_lock=true    // 锁定内存
          - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        ports:
          - 9200:9200
          - 9300:9300
        networks:
          - esnet
          
      es2:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
        container_name: es2
        environment:
          - bootstrap.memory_lock=true
          - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
          - "discovery.zen.ping.unicast.hosts=es1"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        networks:
          - esnet
    
      es3:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
        container_name: es3
        environment:
          - bootstrap.memory_lock=true
          - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
          - "discovery.zen.ping.unicast.hosts=es1"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        networks:
          - esnet
          
      es4:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
        container_name: es4
        environment:
          - bootstrap.memory_lock=true
          - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
          - "discovery.zen.ping.unicast.hosts=es1"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        networks:
          - esnet      
          
      es5:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
        container_name: es5
        environment:
          - bootstrap.memory_lock=true
          - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
          - "discovery.zen.ping.unicast.hosts=es1"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        networks:
          - esnet
          
      es6:
        image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
        container_name: es6
        environment:
          - bootstrap.memory_lock=true
          - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
          - "discovery.zen.ping.unicast.hosts=es1"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        networks:
          - esnet
    
      kibana:
        image: docker.elastic.co/kibana/kibana:6.6.1
        container_name: kibana
        ports:
          - 5601:5601
        environment:
          - ELASTICSEARCH_URL=http://es1:9200
        networks:
          - esnet
    
    networks:
      esnet:
  • 相关阅读:
    Mac下写博客工具ecto相关资料
    重装MacOS
    Mac下写博客工具MarsEdit相关资料
    Mac下安装最新版本的Graphviz
    什么是回归分析?
    Mac 配置Charles抓https的包
    Android sdk tool android 命令参数
    判断某个端口被那个进程占用
    [置顶] 微创新时代个人崛起的方法
    xml获取配置DataTable
  • 原文地址:https://www.cnblogs.com/zz0412/p/10572828.html
Copyright © 2011-2022 走看看