LoginSignup
2
4

More than 3 years have passed since last update.

DockerでElastic Searchを立ち上げる

Posted at

File構成

  • docker-compose.yml
  • elasticsearch
    • DockerFile
  • kibana
    • DockerFile

docker-compose.yml


version: '3'
services:
  elasticsearch:
    build: elasticsearch
    volumes:
        - ElasticSearch-data:/usr/share/elasticsearch/data
    ports:
        - 9200:9200
    expose:
        - 9300
  kibana:
    build: kibana
    ports:
        - 5601:5601

volumes:
    ElasticSearch-data:
        driver: local

elasticsearch/DockerFile

FROM docker.elastic.co/elasticsearch/elasticsearch:6.3.2

# x-pack をインストール
#RUN elasticsearch-plugin  install --batch x-pack

# kuromojiをインストール
RUN elasticsearch-plugin  install analysis-kuromoji

kibana/DockerFile

FROM docker.elastic.co/kibana/kibana:6.3.2
2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4