docker-compose 구축 Elasticsearch+kibana(7.2.0)
3190 단어 elasticsearch
version: '3'
services:
es1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
container_name: es1
privileged: true
environment:
- cluster.name=elasticsearch-cluster
- node.name=es1
- node.master=true
- node.data=true
- bootstrap.memory_lock=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- cluster.initial_master_nodes=es1
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.seed_hosts=es1,es2,es3"
- "discovery.zen.minimum_master_nodes=2"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/data/es1:/usr/share/elasticsearch/data
- ./elasticsearch/logs/es1:/usr/share/elasticsearch/logs
# - ./elasticsearch/config/es1:/usr/share/elasticsearch/config
ports:
- 9200:9200
- 9300:9300
es2:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
container_name: es2
privileged: true
environment:
- cluster.name=elasticsearch-cluster
- node.name=es2
- node.master=true
- node.data=true
- bootstrap.memory_lock=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- cluster.initial_master_nodes=es1
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.seed_hosts=es1,es2,es3"
- "discovery.zen.minimum_master_nodes=2"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/data/es2:/usr/share/elasticsearch/data
- ./elasticsearch/logs/es2:/usr/share/elasticsearch/logs
# - ./elasticsearch/config/es3:/usr/share/elasticsearch/config
ports:
- 9201:9200
- 9301:9300
es3:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
container_name: es3
privileged: true
environment:
- cluster.name=elasticsearch-cluster
- node.name=es3
- node.master=true
- node.data=true
- bootstrap.memory_lock=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- cluster.initial_master_nodes=es1
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.seed_hosts=es1,es2,es3"
- "discovery.zen.minimum_master_nodes=2"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/data/es3:/usr/share/elasticsearch/data
- ./elasticsearch/logs/es3:/usr/share/elasticsearch/logs
# - ./elasticsearch/config/es3:/usr/share/elasticsearch/config
ports:
- 9202:9200
- 9302:9300
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
container_name: efk-kibana
links:
- es1
- es2
- es3
ports:
- 5601:5601
volumes:
# - ./kibana/config/kibana.yml:/usr/local/kibana/config/kibana.yml
- ./kibana/config/:/usr/local/kibana/config/
environment:
ELASTICSEARCH_HOSTS: http://0.0.0.0:9200
프로필이 공유 경로를 설정했기 때문에 해당하는 공유 경로를 만들어야 합니다.
나중에 실행하면 됩니다.
docker-compose -f docker-compose.yml up -d #-d , ,
docker-compose ps #
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
kafka connect e elasticsearch를 관찰할 수 있습니다.No menu lateral do dashboard tem a opção de connectors onde ele mostra todos os clusters do kafka connect conectados atu...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.