使用DockerCompose搭建部署Kibana
mkdir /docker/kibana
vi kibana.yml
输入配置:
server.name: kibana
# kibana的主机地址 0.0.0.0可表示监听所有IP
server.host: "0.0.0.0"
# kibana访问es的URL
elasticsearch.hosts: [ "http://192.168.200.135:9200" ]
elasticsearch.username: 'kibana'
elasticsearch.password: '123456'
# 显示登陆页面
xpack.monitoring.ui.container.elasticsearch.enabled: true
# 语言
#i18n.locale: "zh-CN"
docker-compose.yml如下:
version: '3'
services:
kibana:
image: kibana:6.8.13
restart: always
container_name: kibana
volumes:
- /docker/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- '5601:5601' #java、集群通信端口
privileged: true #环境变量