diff --git a/Dockerfile b/Dockerfile index 5956c17..768d430 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM docker.elastic.co/elasticsearch/elasticsearch:7.17.28 +FROM docker.elastic.co/elasticsearch/elasticsearch:9.2.0 LABEL maintainer="Aad Versteden " -ENV TAKE_FILE_OWNERSHIP /usr/share/elasticsearch/data -ENV MAX_MAP_COUNT 262144 -ENV ES_JAVA_OPTS "-Xms2g -Xmx2g" +ENV MAX_MAP_COUNT=262144 +ENV ES_JAVA_OPTS="-Xms2g -Xmx2g" +ENV discovery.type=single-node +RUN printf "\nxpack.security.enabled: false\nxpack.security.enrollment.enabled: false\n" >> /usr/share/elasticsearch/config/elasticsearch.yml RUN sed -i '/-Des.bundled_jdk*/a -Dlog4j2.formatMsgNoLookups=true \\' /usr/share/elasticsearch/bin/elasticsearch