File size: 511 Bytes
2eb6454 c60614b 2eb6454 c60614b 2eb6454 c60614b 2eb6454 c60614b 2eb6454 c60614b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.0
# Set environment variables for single-node mode
ENV discovery.type=single-node \
ES_JAVA_OPTS="-Xms512m -Xmx512m" \
xpack.security.enabled=false \
network.host=0.0.0.0 \
http.port=7860
# Expose the required port
EXPOSE 7860
# Override default config to use port 7860
RUN echo 'http.port: 7860' >> /usr/share/elasticsearch/config/elasticsearch.yml
# Start Elasticsearch
CMD ["/bin/bash", "-c", "/usr/local/bin/docker-entrypoint.sh"]
|