/docker-neo4j

Dockerfile and script for creating Neo4j container

Primary LanguageShell

Docker image for Neo4j

This image is a build of Neo4j’s Docker image.

*Note:* As of Neo4j version 4.4+, Neo4j’s official image supports both amd64 (Intel chip) and arm64 (Apple silicon chip) architectures (see OS/ARCH for each tag). If you are using Neo4j prior to v4.4, then you will need to use the neo4j/neo4j-arm64-experimental DockerHub repository and alter the Dockerfile and runNeo4j.sh script to pull that image.

Building and running the image

You can build the image on your local machine with the following command:

cd docker/

docker build . -t <project>

*Note:* <project> in the above command is the repository you are referencing. If using my build of Neo4j’s image, you can put jenniferreif232/neo4j. If you want to build straight from Neo4j’s image, you can put neo4j:5.22.0. Both should yield the same results, as my build doesn’t make changes to Neo4j’s image.

To run the container, execute the following command in the root directory:

./runNeo4j.sh

You can run a docker ps at the command line to verify the container is still running.