Localhost inside docker - neo4j -


i'm trying create dockerfile sets neo4j instance. have following:

from neo4j:3.0 maintainer andy  cmd curl \ -h "content-type: application/json" \ -x post -d '{"password":"mypassword"}' \ -u neo4j:neo4j http://localhost:7474/user/neo4j/password  

from here, build image , run using following command

docker run -p 7474:7474 myimage 

while i'm able access neo4j panel @ localhost:4747 on host machine, curl command intended run inside container, unable access it's own localhost instance.

so guess question is, doing correctly , how 1 call localhost inside container?

just clarify, don't want curl request escape container - should communicate neo4j inside container.

maybe want use environment variable $neo4j_auththat controls authentication explained here.

for example disable authentication

docker run -p 7474:7474 -e neo4j_auth=none -d neo4j:3.0 

you might want check entrypoint script of docker neo4j:3.0 image, can make own version if options given not enough you.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -