forked from pires/docker-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (30 loc) · 810 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM elasticsearch:6.7.0
MAINTAINER [email protected]
# Export HTTP & Transport
EXPOSE 9200 9300
ENV ES_VERSION 6.7.0
ENV PATH /elasticsearch/bin:$PATH
WORKDIR /elasticsearch
# Copy configuration
COPY config /elasticsearch/config
# Copy run script
COPY docker-entrypoint.sh /
# Set environment variables defaults
ENV ES_JAVA_OPTS "-Xms512m -Xmx512m"
ENV CLUSTER_NAME elasticsearch-default
ENV NODE_MASTER true
ENV NODE_DATA true
ENV NODE_INGEST true
ENV HTTP_ENABLE true
ENV NETWORK_HOST _site_
ENV HTTP_CORS_ENABLE true
ENV HTTP_CORS_ALLOW_ORIGIN *
ENV NUMBER_OF_MASTERS 1
ENV MAX_LOCAL_STORAGE_NODES 1
ENV SHARD_ALLOCATION_AWARENESS ""
ENV SHARD_ALLOCATION_AWARENESS_ATTR ""
ENV MEMORY_LOCK true
ENV REPO_LOCATIONS ""
# Volume for Elasticsearch data
VOLUME ["/data"]
CMD ["/docker-entrypoint.sh"]