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:
  • 相关阅读:
    蓝瓶的钙,好喝的钙——windows,我要蓝屏的
    gz文件最后四位检测
    中国Linux开源镜像站大全
    linux强制将数据写入磁盘,防止丢失内存的数据
    文件是否真的写入了磁盘?
    OpenStack之日志
    使用 Nmon 监控 Linux 的系统性能
    Android获取系统cpu信息,内存,版本,电量等信息
    Android——service重启
    Android——显示当前运行所有服务,判断服务是否运行
  • 原文地址:https://www.cnblogs.com/zz0412/p/10572828.html
Copyright © 2011-2022 走看看