docker安装es kibana cerebro
docker-compose.yml
version: '2.2'
services:
cerebro:
image: lmenezes/cerebro:0.8.5
container_name: cerebro
ports:
- "9000:9000"
command:
- -Dhosts.0.host=http://es01:9200
networks:
- es7net
kibana:
image: docker.elastic.co/kibana/kibana:7.17.8
container_name: kibana7
environment:
- I18N_LOCALE=zh-CN
- XPACK_GRAPH_ENABLED=true
- TIMELION_ENABLED=true
- XPACK_MONITORING_COLLECTION_ENABLED="true"
- ELASTICSEARCH_HOSTS="http://es01:9200"
ports:
- "5601:5601"
networks:
- es7net
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02
- cluster.initial_master_nodes=es01,es02
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es7data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- es7net
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
container_name: es02
environment:
- node.name=es02
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es01
- cluster.initial_master_nodes=es01,es02
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es7data02:/usr/share/elasticsearch/data
networks:
- es7net
volumes:
es7data01:
driver: local
es7data02:
driver: local
networks:
es7net:
driver: bridge
docker-compose up
启动elastic和kibana服务
docker-compose down
关闭elastic和kibana服务