美文网首页
docker-compose.yml

docker-compose.yml

作者: _Gaara_ | 来源:发表于2020-09-27 15:42 被阅读0次

    version: '2.2'
    services:
    elasticsearch:
    image: bolingcavalry/elasticsearch-with-ik:6.5.0
    container_name: elasticsearch
    environment:
    - cluster.name=docker-cluster
    - bootstrap.memory_lock=true
    - http.cors.enabled=true
    - http.cors.allow-origin=*
    - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
    memlock:
    soft: -1
    hard: -1
    volumes:
    - esdata1:/usr/share/elasticsearch/data
    ports:
    - 9200:9200
    networks:
    - esnet
    elasticsearch2:
    image: bolingcavalry/elasticsearch-with-ik:6.5.0
    container_name: elasticsearch2
    environment:
    - cluster.name=docker-cluster
    - bootstrap.memory_lock=true
    - http.cors.enabled=true
    - http.cors.allow-origin=*
    - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    - "discovery.zen.ping.unicast.hosts=elasticsearch"
    ulimits:
    memlock:
    soft: -1
    hard: -1
    volumes:
    - esdata2:/usr/share/elasticsearch/data
    networks:
    - esnet
    head:
    image: bolingcavalry/elasticsearch-head:6
    container_name: head
    ports:
    - 9100:9100
    networks:
    - esnet
    volumes:
    esdata1:
    driver: local
    esdata2:
    driver: local

    networks:
    esnet:

    相关文章

      网友评论

          本文标题:docker-compose.yml

          本文链接:https://www.haomeiwen.com/subject/btzzektx.html