Neo4j Dockerfile

Neo4j version

Usage

Build the image

To create the image frodenas/neo4j, execute the following command on the docker-neo4j folder:

$ docker build -t frodenas/neo4j .

Run the image

To run the image and bind to host port 7474:

$ docker run -d --name neo4j -p 7474:7474 frodenas/neo4j

Persistent data

The Neo4j server is configured to store data in the /data directory inside the container. You can map thecontainer's /data volume to a volume on the host so the data becomes independent of the running container: