From 75aa4dc02825b93b139e62fd615d230961519e5d Mon Sep 17 00:00:00 2001 From: Richard Lister Date: Wed, 13 Apr 2016 19:08:58 -0400 Subject: [PATCH] hack the bind address in a hacky way To access on a mapped port from outside the container, we need to bind eth0 (or all, i.e. 0.0.0.0) instead of just lo0. --- aws-es-kibana/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws-es-kibana/Dockerfile b/aws-es-kibana/Dockerfile index 9774cdc..685ebf9 100644 --- a/aws-es-kibana/Dockerfile +++ b/aws-es-kibana/Dockerfile @@ -5,6 +5,9 @@ MAINTAINER Ric Lister RUN apk add --update nodejs && \ npm install aws-es-kibana -g +## need to bind eth0 inside container, not lo0 +RUN sed -i.bak s/127\.0\.0\.1/0\.0\.0\.0/ /usr/lib/node_modules/aws-es-kibana/index.js + EXPOSE 9200 ENTRYPOINT [ "aws-es-kibana" ] \ No newline at end of file