mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-03-29 21:47:14 +02:00
update neo4j
This commit is contained in:
parent
465c9b6e24
commit
0478313563
42
neo4j/README.md
Normal file
42
neo4j/README.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
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 today’s 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/
|
Loading…
x
Reference in New Issue
Block a user