Skip to content

Instantly share code, notes, and snippets.

@xeraa
Last active December 18, 2018 13:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeraa/516fb88ef0591009e45aadcea9c3f3cc to your computer and use it in GitHub Desktop.
Save xeraa/516fb88ef0591009e45aadcea9c3f3cc to your computer and use it in GitHub Desktop.
Zusammengesetzte Worte in Elasticsearch
ELASTIC_VERSION=6.5.3
---
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"
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
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
RUN wget https://sourceforge.net/projects/offo/files/offo-hyphenation/1.2/offo-hyphenation_v1.2.zip && unzip offo-hyphenation_v1.2.zip && mv offo-hyphenation/hyph/ /usr/share/elasticsearch/config/
RUN wget https://raw.githubusercontent.com/uschindler/german-decompounder/master/dictionary-de.txt && mv dictionary-de.txt /usr/share/elasticsearch/config/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment