forked from rigon/docker-kibana-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (19 loc) · 790 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
FROM node
## Uncommet checkout line to use this version
#ENV KIBANA_VERSION 6.1.0
RUN set -x \
&& git clone https://github.com/elastic/kibana.git \
&& cd kibana \
#&& git checkout tags/v$KIBANA_VERSION \
&& rm -rf .git \
&& npm install \
# the default "server.host" is "localhost" in 5+
&& sed -ri "s!^(\#\s*)?(server\.host:).*!\2 '0.0.0.0'!" /kibana/config/kibana.yml \
&& grep -q "^server\.host: '0.0.0.0'\$" /kibana/config/kibana.yml \
# ensure the default configuration is useful when using --link
&& sed -ri "s!^(\#\s*)?(elasticsearch\.url:).*!\2 'http://elasticsearch:9200'!" /kibana/config/kibana.yml \
&& grep -q "^elasticsearch\.url: 'http://elasticsearch:9200'\$" /kibana/config/kibana.yml
EXPOSE 5601
WORKDIR /kibana
VOLUME /kibana/plugins
CMD ["npm", "start"]