thelabdude commented on pull request #1769:
URL: https://github.com/apache/lucene-solr/pull/1769#issuecomment-678536391


   > > Note the need to set SOLR_JETTY_HOST to bind to all interfaces in the 
container if you want to expose Solr to your local workstation
   > 
   > I previously found the need to set `SOLR_HOST=localhost` with docker 
containers. Is one way preferred over the other? What's the actual difference?
   
   @madrob This commit here 
(https://github.com/apache/lucene-solr/commit/5377742a62e58c79055f3a2676b77e1ed1d61823#diff-2e431666cd6c6f1e08f79cdefa4988a4)
 makes it so Jetty only binds to 127.0.0.1 in the Docker container, which 
messes up Docker's ability to expose port 8983 outside of the container. It 
looks like that was done for security reasons ... So setting SOLR_JETTY_HOST to 
0.0.0.0 allows me to reach Solr from outside Docker using http://locahost:8983


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to