11 lines
277 B
Docker
11 lines
277 B
Docker
|
FROM elasticsearch:7.17.4
|
||
|
|
||
|
ENV ES_JAVA_OPTS "-Xms2g -Xmx2g"
|
||
|
ENV ELASTIC_USERNAME "elastic"
|
||
|
ENV ELASTIC_PASSWORD "password"
|
||
|
|
||
|
COPY elasticsearch.yml /usr/share/elasticsearch/config/
|
||
|
|
||
|
RUN printf "password" | ./bin/elasticsearch-keystore add -f -x "bootstrap.password"
|
||
|
|
||
|
EXPOSE 9200
|