Coder Social home page Coder Social logo

Using it in docker-compose about docker-neo4j HOT 4 CLOSED

neo4j avatar neo4j commented on July 19, 2024
Using it in docker-compose

from docker-neo4j.

Comments (4)

benbc avatar benbc commented on July 19, 2024

Hello @nanounanue

To change the password you need to set the NEO4J_AUTH environment variable. See the "Environment variables" section of the image docs and the Neo4j manual for details.

I'm not sure what you mean by "access it from the shell". Can you expand on that?

from docker-neo4j.

nanounanue avatar nanounanue commented on July 19, 2024

Thank you for your quick response @benbc

I read the section that you mentioned, but How can I avoid that it asks change the password the first time?

And about the "access it from the shell", I mean that I open a neo4j-shell and when I try to connect, It fails...

The docker-compose ps output:

 docker-compose ps   
       Name                     Command               State                                    Ports                                  
-------------------------------------------------------------------------------------------------------------------------------------
docker_data_1        /docker-entrypoint.sh true       Exit 0                                                                          
docker_es_1          /docker-entrypoint.sh elas ...   Up       0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp                         
docker_graphdata_1   sh                               Exit 0                                                                          
docker_graphdb_1     /var/lib/neo4j/bin/neo4j c ...   Up       0.0.0.0:1337->1337/tcp, 0.0.0.0:7473->7473/tcp, 0.0.0.0:7474->7474/tcp 
docker_nginx_1       /usr/sbin/nginx                  Up       0.0.0.0:80->80/tcp                                                     
docker_postgres_1    /docker-entrypoint.sh postgres   Up       0.0.0.0:5432->5432/tcp                                                 
docker_redis_1       usr/local/bin/run                Up       0.0.0.0:6379->6379/tcp                                                 
docker_web_1         /usr/local/bin/gunicorn -w ...   Up       8000/tcp                                                 

The neo4j-shell:

# nanounanue at heliodromus in ~/software/neo4j-community-2.3.1 [13:14:58]
$ bin/neo4j-shell 
Welcome to the Neo4j Shell! Enter 'help' for a list of commands
NOTE: Remote Neo4j graph database service 'shell' at port 1337

neo4j-sh (?)$ help
Connection refused to host: 127.0.1.1; nested exception is: 
        java.net.ConnectException: Connection refused
neo4j-sh (?)$ 

from docker-neo4j.

benbc avatar benbc commented on July 19, 2024

How can I avoid that it asks change the password the first time?

You need to set the initial password using the environment variable NEO4J_AUTH.

Have you read the section on the Neo4j shell in the docs here? (It's poorly formatted because of a bug in Docker Hub; the section you need is at the end.)

from docker-neo4j.

benbc avatar benbc commented on July 19, 2024

Hello @nanounanue. I hope you figured this out. I'm going to close the issue now -- please reopen it if you are still having problems.

from docker-neo4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.