1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update neo4j

This commit is contained in:
kev 2021-09-23 15:53:51 +08:00
parent 517c5cbb27
commit 789119ee24
2 changed files with 33 additions and 34 deletions

View File

@ -5,28 +5,9 @@ neo4j
relationships as first-class entities, helping enterprises build intelligent relationships as first-class entities, helping enterprises build intelligent
applications to meet today’s evolving data challenges. 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 ## up and running
``` ```bash
$ docker-compose up -d $ docker-compose up -d
$ docker-compose exec neo4j bin/neo4j-shell $ docker-compose exec neo4j bin/neo4j-shell
@ -37,6 +18,8 @@ $ docker-compose exec neo4j bin/neo4j-shell
>>> create (p:Person {id: {person_id}}) return p; >>> create (p:Person {id: {person_id}}) return p;
>>> match (p:Person {id: {person_id}}) return p; >>> match (p:Person {id: {person_id}}) return p;
>>> exit >>> exit
$ curl http://localhost:7474/browser/
``` ```
[1]: http://neo4j.com/ [1]: http://neo4j.com/

View File

@ -1,14 +1,30 @@
neo4j: #
image: neo4j # References:
ports: # - https://neo4j.com/docs/operations-manual/current/docker/
- "7474:7474" # - https://neo4j.com/docs/operations-manual/current/docker/ref-settings/
- "7687:7687" # - https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/
volumes: #
- ./data:/data
environment: version: "3.8"
- NEO4J_CACHE_MEMORY=4G services:
ulimits: neo4j:
nofile: image: neo4j
soft: 65535 ports:
hard: 65535 - "7474:7474"
restart: always - "7687:7687"
volumes:
- ./data/conf:/conf
- ./data/data:/data
- ./data/import:/import
- ./data/logs:/logs
- ./data/plugins:/plugins
environment:
- NEO4J_AUTH=none
- NEO4J_dbms.memory.heap.initial_size=5g
- NEO4J_dbms_memory_heap_max__size=5g
- NEO4J_dbms_memory_pagecache_size=7g
ulimits:
nofile:
soft: 65535
hard: 65535
restart: unless-stopped