Skip to content

Instantly share code, notes, and snippets.

@gnepud
Last active September 4, 2022 10:09
Show Gist options
  • Save gnepud/4cac79b5e5f5053c1fd6 to your computer and use it in GitHub Desktop.
Save gnepud/4cac79b5e5f5053c1fd6 to your computer and use it in GitHub Desktop.
docker elasticsearch / kibana install plugin
# elasticsearch
docker run --rm -v "$PWD/esdata":/usr/share/elasticsearch/data -v "$PWD/esdata/plugins":/usr/share/elasticsearch/plugins elasticsearch /usr/share/elasticsearch/bin/plugin install marvel-agent
docker run -d -v "$PWD/esdata":/usr/share/elasticsearch/data -v "$PWD/esdata/plugins":/usr/share/elasticsearch/plugins -p 9200:9200 -p 9300:9300 --name=elasticsearch elasticsearch
# kibana
mkdir -p kibana/installedPlugins
chmod 777 -R kibana
docker run --rm -v "$PWD/kibana/installedPlugins":/opt/kibana/installedPlugins --link some-elasticsearch:elasticsearch kibana kibana plugin --install elasticsearch/marvel/latest
docker run -d --name kibana -v "$PWD/kibana/installedPlugins":/opt/kibana/installedPlugins --link some-elasticsearch:elasticsearch -p 5601:5601 kibana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment