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:
  • 相关阅读:
    写入和读取本地文件。
    通过ADG技术迁移单实例到rac集群上
    更改整个目录文件的所有权限
    oracle12c安装过程netca报错failed to core dump
    oracle通过闪回查询表的更改记录
    oracle表空间使用率查询sql
    SQL执行慢的原因分析
    存储过程+定时job
    oracle goldengate搭建配置
    oracle11G Windows冷备恢复
  • 原文地址:https://www.cnblogs.com/zz0412/p/10572828.html
Copyright © 2011-2022 走看看