@@ -25,7 +25,7 @@ ENV ELASTIC 2.4.1
2525ENV LOGSTASH 2.4.0
2626ENV KIBANA 4.6.2
2727
28- RUN apk-install libzmq bash nodejs supervisor nginx apache2-utils
28+ RUN apk-install libzmq bash nodejs supervisor nginx apache2-utils openssl
2929RUN mkdir -p /usr/local/lib \
3030 && ln -s /usr/lib/*/libzmq.so.3 /usr/local/lib/libzmq.so
3131RUN apk-install -t .build-deps wget ca-certificates \
@@ -68,6 +68,8 @@ RUN apk-install -t .build-deps wget ca-certificates \
6868 && apline_node='NODE="/usr/bin/node"' \
6969 && sed -i "s|$bundled|$apline_node|g" /usr/share/kibana/bin/kibana \
7070 && rm -rf /usr/share/kibana/node \
71+ && echo "Make Ngins SSL directory..." \
72+ && mkdir -p /etc/nginx/ssl \
7173 && echo "Create elstack user..." \
7274 && adduser -DH -s /sbin/nologin elstack \
7375 && chown -R elstack:elstack /usr/share/elasticsearch \
@@ -84,23 +86,28 @@ ENV PATH /usr/share/kibana/bin:$PATH
8486# Add custom elasticsearch config
8587COPY config/elastic /usr/share/elasticsearch/config
8688COPY config/elastic/logrotate /etc/logrotate.d/elasticsearch
89+
8790# Add custom logstash config
8891COPY config/logstash/conf.d/ /etc/logstash/conf.d/
8992COPY config/logstash/patterns/ /opt/logstash/patterns/
9093COPY config/logstash/logstash.yml /etc/logstash/
94+
9195# necessary for 5.0+ (overriden via "--path.settings", ignored by < 5.0)
9296ENV LS_SETTINGS_DIR /etc/logstash
97+
9398# Add custom nginx config
9499COPY config/nginx/nginx.conf /etc/nginx/nginx.conf
95100COPY config/nginx/kibana.conf /etc/nginx/conf.d/
96- COPY config/nginx/htpasswd /etc/nginx/htpasswd.users
101+ COPY config/nginx/ssl.kibana.conf /etc/nginx/conf.d/
102+
97103# Add custom supervisor config
98104COPY config/supervisord/supervisord.conf /etc/supervisor/
99105
100106# Add entrypoints
101107COPY entrypoints/elastic-entrypoint.sh /
102108COPY entrypoints/logstash-entrypoint.sh /
103109COPY entrypoints/kibana-entrypoint.sh /
110+ COPY entrypoints/nginx-entrypoint.sh /
104111
105112VOLUME ["/usr/share/elasticsearch/data" ]
106113VOLUME ["/etc/logstash/conf.d" ]
0 commit comments