1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/neo4j/README.md
2016-05-17 10:32:38 +08:00

43 lines
774 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

neo4j
=====
[Neo4j][1] is a highly scalable native graph database that leverages data
relationships as first-class entities, helping enterprises build intelligent
applications to meet todays evolving data challenges.
## docker-compose
```yaml
neo4j:
image: neo4j
ports:
- "7474:7474"
- "7687:7687"
volumes:
- ./data:/data
environment:
- NEO4J_CACHE_MEMORY=4G
ulimits:
nofile:
soft: 65535
hard: 65535
restart: always
```
## up and running
```
$ docker-compose up -d
$ docker-compose exec neo4j bin/neo4j-shell
>>> man
>>> export person_id="123"
>>> env
>>> create index on :Person(id);
>>> create (p:Person {id: {person_id}}) return p;
>>> match (p:Person {id: {person_id}}) return p;
>>> exit
```
[1]: http://neo4j.com/