es kibana 搭建
version: '3'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
container_name: es01
restart: always
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9600:9200
networks:
- elastic
kibana01:
image: docker.elastic.co/kibana/kibana:7.15.0
container_name: kibana01
restart: always
links:
- es01
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml:rw
ports:
- 5602:5601
networks:
- elastic
volumes:
data01:
driver: local
networks:
elastic:
driver: bridge
docker-compose.yml文件
server.host: "0"
server.shutdownTimeout: "5s"
elasticsearch.hosts: [ "http://es01:9200" ]
monitoring.ui.container.elasticsearch.enabled: true
enterpriseSearch.host: 'http://localhost:3002'
kibana/kibana.yml