Skip to content

Instantly share code, notes, and snippets.

@xeraa
Last active January 17, 2020 17:32
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeraa/3ce6cf275240556bc7b95cea67002057 to your computer and use it in GitHub Desktop.
Save xeraa/3ce6cf275240556bc7b95cea67002057 to your computer and use it in GitHub Desktop.
Docker: Kibana + Elasticsearch with Stempel, Phonetic, and Language detection
ELASTIC_VERSION=6.3.0
---
version: '2'
services:
elasticsearch:
build:
dockerfile: $PWD/elasticsearch
context: $PWD
args:
- ELASTIC_VERSION=${ELASTIC_VERSION}
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION
links:
- elasticsearch
ports:
- 5601:5601
volumes:
esdata1:
driver: local
ARG ELASTIC_VERSION="$ELASTIC_VERSION"
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
RUN bin/elasticsearch-plugin install analysis-stempel
RUN bin/elasticsearch-plugin install analysis-phonetic
RUN bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/6.3.0.1/ingest-langdetect-6.3.0.1.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment