ZhangZhihui's Blog  

 

zzh@ZZHPC:~$ docker pull neo4j:latest

 

How to use this image

You can start a Neo4j container like this:

docker run \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    neo4j

which allows you to access neo4j through your browser at http://localhost:7474⁠.

This binds two ports (7474 and 7687) for HTTP and Bolt access to the Neo4j API. A volume is bound to /data to allow the database to be persisted outside the container.

By default, this requires you to login with neo4j/neo4j and change the password. You can, for development purposes, disable authentication by passing --env=NEO4J_AUTH=none to docker run.

Documentation

For more examples and complete documentation please go to our manual here⁠.

 

zzh@ZZHPC:~$ docker run --name zneo4j \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    --volume=$HOME/neo4j/import:/import \
    -e NEO4J_PLUGINS='["graph-data-science", "apoc"]' \
    -e NEO4J_apoc_export_file_enabled=true \
    -e NEO4J_apoc_import_file_enabled=true \
    -e NEO4J_apoc_import_file_use__neo4j__config=true \
    -d neo4j

 

 

posted on 2024-12-15 19:58  ZhangZhihuiAAA  阅读(3)  评论(0编辑  收藏  举报