You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
737 B

# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
# base image
FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.12
USER root
# environmental settings
ENV ES_JAVA_OPTS '-Xms512m -Xmx512m'
ENV xpack.security.enabled 'false'
ENV xpack.monitoring.enabled 'false'
ENV cluster.name 'pelias-dev'
ENV discovery.type 'single-node'
ENV bootstrap.memory_lock 'true'
RUN echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
# configure plugins
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
# elasticsearch config
ADD elasticsearch.yml /usr/share/elasticsearch/config/
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
# run as elasticsearch user
USER elasticsearch