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_auth
that 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
Post a Comment