How to install kibana tokenizer inside docker container

How to install kibana tokenizer inside docker container

step:

1. Create a new docker-compose.yml file in the virtual machine directory, and then enter the yml file editor

vi docker-compose.yml

2. Add the following code to the yml file:

version: "3.1"
services:
 elasticsearch:
  image: daocloud.io/library/elasticsearch:6.5.4
  restart: always
  container_name: elasticsearch
  ports:
   - 9200:9200 
    #Map the tokenizer to volumes inside the container:
	 - ./ik:/usr/share/elasticsearch/plugins/ik
  kibana:
   image: daocloud.io/library/kibana:6.5.4
   restart: always
   container_name: kibana
   ports:
    -5601:5601
   environment:
     #Fill in the IP address of the virtual machine here - elasticsearch_url=http://192.168.199.109:9200
   depends_on:
    - elasticsearch

3. Press Esc : wq to save and exit the yml file 4. Create a new ik folder in the current directory (at the same level as docker-compose.yml) 5. Install the unzip software:

yum install zip

6. Copy elasticsearch-analysis-ik-6.5.4.zip to the virtual machine (it is recommended to use MobaXterm_Personal software, directly pull the compressed package from the local computer to the virtual machine), and execute the decompression command in the directory where the copied elasticsearch-analysis-ik-6.5.4.zip is located

unzip elasticsearch-analysis-ik-6.5.4.zip -d /usr/local/elasticsearch/ik

7. Return to the directory where the newly created docker-compose.yml file is located and execute the command:

docker-compose up -d

In this way, elasticsearch and kibana tokenizers are installed! ! ! Moreover, kibana is installed inside the docker container and will not disappear due to the execution of the docker down command.

This is the end of this article on how to install the kibana tokenizer inside a docker container. For more information about installing the kibana tokenizer on docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install elasticsearch and kibana in docker
  • Sample code for installing ElasticSearch and Kibana under Docker
  • How to install ElasticSearch on Docker in one article
  • Teach you how to install ElasticSearch and Kibana on Docker

<<:  Vue3 encapsulates the side navigation text skeleton effect component

>>:  How to install and deploy MySQL 8.0 under CentOS8

Recommend

How to clear default styles and set common styles in CSS

CSS Clear Default Styles The usual clear default ...

The difference between hash mode and history mode in vue-router

vue-router has two modes hash mode History mode 1...

Data storage implementation method in WeChat applet

Table of contents Global variable globalData Page...

Detailed explanation of using Docker to build externally accessible MySQL

Install MySQL 8.0 docker run -p 63306:3306 -e MYS...

LinkedIn revamps to simplify website browsing

Business social networking site LinkedIn recently...

How to configure static network connection in Linux

Configuring network connectivity for Linux system...

The difference between distinct and group by in MySQL

Simply put, distinct is used to remove duplicates...

How to set a fixed IP address in CentOS7 virtual machine

Since my development environment is to install Ce...

Native JS to achieve draggable login box

This article shares a draggable login box impleme...

Solve the problem of blank gap at the bottom of Img picture

When working on a recent project, I found that th...

Implementation of TypeScript in React project

Table of contents 1. Introduction 2. Usage Statel...

How to forget the root password in Mysql8.0.13 under Windows 10 system

1. First stop the mysql service As an administrat...

Javascript operation mechanism Event Loop

Table of contents 1. Four concepts 1. JavaScript ...

MySQL query method with multiple conditions

mysql query with multiple conditions Environment:...