LoginSignup
2
3

More than 3 years have passed since last update.

docker-composeでElasticsearchを起動する際に複数プラグインをインストールする

Posted at

概要

docker-comopseでElasticsearchを起動する際に複数プラグインをインストールする

docker-composeの書き方

version: "3.0"

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:x.x.x
    ...
    command:
      - /bin/sh
      - -c
      - "./bin/elasticsearch-plugin list | grep -q analysis-kuromoji
      || ./bin/elasticsearch-plugin install analysis-kuromoji;
      ./bin/elasticsearch-plugin list | grep -q analysis-icu
      || ./bin/elasticsearch-plugin install analysis-icu;
      /usr/local/bin/docker-entrypoint.sh"

参考

Stackoverflow::How to install ElasticSeach plugins using docker compose

2
3
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
3