mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-01 20:43:35 +00:00
26 lines
648 B
Docker
26 lines
648 B
Docker
# Wazuh App Copyright (C) 2019 Wazuh Inc. (License GPLv2)
|
|
FROM docker.elastic.co/elasticsearch/elasticsearch:6.5.4
|
|
|
|
ENV ALERTS_SHARDS="1" \
|
|
ALERTS_REPLICAS="0"
|
|
|
|
ENV API_USER="foo" \
|
|
API_PASS="bar"
|
|
|
|
ENV XPACK_ML="false"
|
|
|
|
ENV TEMPLATE_VERSION=v3.8.2
|
|
|
|
ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/elasticsearch/wazuh-elastic6-template-alerts.json /usr/share/elasticsearch/config
|
|
|
|
COPY config/entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod 755 /entrypoint.sh
|
|
|
|
COPY --chown=elasticsearch:elasticsearch ./config/load_settings.sh ./
|
|
|
|
RUN chmod +x ./load_settings.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["elasticsearch"]
|