From 8c073332d43d62ca830393b18389911d97ed85eb Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:59:59 -0400 Subject: [PATCH 1/2] Add --env network.publish_host=127.0.0.1 to "make elastic-docker". --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d3349e5255..79a9f80fb8 100644 --- a/Makefile +++ b/Makefile @@ -23,4 +23,4 @@ idea: cp -r scripts/idea/* .idea elastic-docker: - docker run -d -v lbryhub:/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 -e"ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.1 + docker run -d --env network.publish_host=127.0.0.1 -v lbryhub:/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 -e"ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.1 From ce0e1e121a43992fc1cf6229fb630d5c61131406 Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Wed, 28 Dec 2022 14:45:36 -0600 Subject: [PATCH 2/2] Use symbolic "_local_" publish_host to potentially get ipv6. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 79a9f80fb8..d233903c94 100644 --- a/Makefile +++ b/Makefile @@ -23,4 +23,4 @@ idea: cp -r scripts/idea/* .idea elastic-docker: - docker run -d --env network.publish_host=127.0.0.1 -v lbryhub:/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 -e"ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.1 + docker run -d --env network.publish_host=_local_ -v lbryhub:/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 -e"ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.1