mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-18 04:06:19 +00:00
20 lines
457 B
Docker
20 lines
457 B
Docker
FROM elasticsearch:8.4.2
|
|
|
|
EXPOSE 9200
|
|
EXPOSE 9300
|
|
|
|
|
|
ADD config/ /usr/share/elasticsearch/config/
|
|
|
|
USER root
|
|
|
|
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
|
|
|
|
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
|
|
|
|
USER elasticsearch
|
|
|
|
HEALTHCHECK --interval=10s --timeout=10s --start-period=60s --retries=12 CMD curl --fail -s http://localhost:9200/ >/dev/null || exit 1
|
|
|
|
CMD ["/usr/share/elasticsearch/bin/elasticsearch"]
|