Created
January 17, 2017 09:12
-
-
Save vdemeester/ea054b814f19b23f7e61070e43230964 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scripts/config/elasticsearch.yml b/scripts/config/elasticsearch.yml | |
index d2d1dbb..e300eea 100644 | |
--- a/scripts/config/elasticsearch.yml | |
+++ b/scripts/config/elasticsearch.yml | |
@@ -8,3 +8,5 @@ cluster.name: elasticsearch | |
node.name: testmaxime | |
#network.host: 127.0.0.1 | |
#network.bind_host: 0 | |
+network.bind_host: 0.0.0.0 | |
+network.publish_host: "${PUBLISH_IP}" | |
diff --git a/scripts/docker-run.sh b/scripts/docker-run.sh | |
index 9e9cb68..46b68b4 100755 | |
--- a/scripts/docker-run.sh | |
+++ b/scripts/docker-run.sh | |
@@ -1,4 +1,4 @@ | |
-#!/bin/bash | |
+#!/usr/bin/env | |
docker stop elastic | |
docker rm -v elastic | |
-docker run -d -p 9200:9200 -p 9300:9300 -v $(pwd)/config:/usr/share/elasticsearch/config --name elastic elasticsearch:latest | |
+docker run -d -p 9200:9200 -p 9300:9300 -v $(pwd)/config:/usr/share/elasticsearch/config --env "PUBLISH_IP=127.0.0.1" --name elastic elasticsearch:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment