Public | Automated Build

Last pushed: 2 years ago
Short Description
Neo4j is a highly scalable, robust (fully ACID) native graph database.
Full Description

neo4j

Neo4j is a highly scalable, robust (fully ACID) native graph database. Neo4j is used in mission-critical apps by thousands of leading, startups, enterprises, and governments around the world.

With the Dockerfile on repository you've a docker neo4j community edition image ready to go.

Docker Hub Registry

This project is automatically built and deployed here.

Setup

  1. (Optional) Install the image:

    docker pull tpires/neo4j

  2. Create and start the container:

    docker run -i -t -d --name neo4j --cap-add=SYS_RESOURCE -p 7474:7474 tpires/neo4j

  3. Access to http://localhost:7474 with your browser.

Authentication

You can add authorization credentials or disable authorization by passing NEO4J_AUTH as environment variable.

  • To set username/password:

    docker run -i -t -d -e NEO4J_AUTH=username:password --name neo4j --cap-add=SYS_RESOURCE -p 7474:7474 tpires/neo4j

  • To bypass authentication:

    docker run -i -t -d -e NEO4J_AUTH=none --name neo4j --cap-add=SYS_RESOURCE -p 7474:7474 tpires/neo4j

Volumes

The neo4j data is stored in "/var/lib/neo4j/data".

  • To use a volume to store the database:

    docker run -i -t -d --name neo4j --cap-add=SYS_RESOURCE -v /var/lib/neo4j/data -p 7474:7474 tpires/neo4j

Docker Pull Command
Owner
tpires
Source Repository

Comments (20)
akiel
2 years ago

Can you please add tags with specific neo4j versions and fixed java version?

kievechua
2 years ago

adrianojs
2 years ago

fr101ed:

I have had the same problem. Are you using boot2docker? When I use boot2docker on a windows machine and try to use a shared folder as the datavolume, it crashes after exactly 7 seconds.

The only solution I have found so far is to use a datavolume that is local for the docker VM.

fr101ed
2 years ago

I have issues when I mount a host directory. I am using this on OS x.
docker run -i -t -d --name neo4j --cap-add=SYS_RESOURCE -v /Users/fred/Work/neo4j:/var/lib/neo4j/data -p 7474:7474 tpires/neo4j
It seems it appeared in docker ps for 2 seconds, then it exited.
docker logs neo4j says
INFO [API] Successfully started database
But,
docker run -i -t -d --name neo4j --cap-add=SYS_RESOURCE -p 7474:7474 tpires/neo4j
woks fine.

ahmetkizilay
2 years ago

Thanks for the image. I forked the project and added support for authentication here

wangqiang8511
3 years ago

I have issues when I trying cypher.transaction.
It seems related https://github.com/neo4j/neo4j/issues/2985

dhm116
3 years ago

@swainjo - I ran into the same issue as you and fixed it by updating the /etc/neo4j/neo4j-server.properties file, setting the following property:

org.neo4j.server.webserver.address=0.0.0.0
`
swainjo
3 years ago

Thanks for this, very useful. I have the neo4j server running fine and want to commit the docker container and then move the saved .tar file and run on another docker instance.

I can successfully create the .tar file but when I run on mac os x with boot2docker I get the following error in the docker logs when trying bring up the container.

Failed to start Neo Server on port [7474], reason [MultiException[java.net.SocketException: Unresolved address, java.net.SocketException: Unresolved address]]

Any help in solving this would be appreciated.

tpires
3 years ago

@s5begg thanks for your feedback. I've solved that bug in the latest version. Please pull the new version and test it.

Thanks.

s5begg
3 years ago

I'm very new to using Docker so please forgive me if this is a novice mistake. I have installed Docker on a new clean install of Ubuntu 14.04.1. I have downloaded the this Neo4j implementation (thank you), and I have successfully run the application - connecting to the browser through 7474. I then shut down the container using sudo docker stop berserk_brattain. Now, when I try to start the container again using sudo docker start berserk_brattain it fails almost immediately with the logs showing a bind exception on the requested address. Any ideas?