dockerfile.yaml
# docker-compose.yaml
version: "3"
services:
neo4j:
image: neo4j
volumes:
- ./db/neo4j/conf:/var/lib/neo4j/conf:rw
- ./db/neo4j/mnt:/var/lib/neo4j/import:rw
- ./db/neo4j/plugins:/plugins:rw
- ./db/neo4j/data:/data:rw
- ./db/neo4j/logs:/var/lib/neo4j/logs:rw
restart: always
ports:
- 7474:7474
- 7687:7687
environment:
- NEO4J_dbms_memory_heap_maxSize=4G
- NEO4J_AUTH=neo4j/123456 #修改默认用户密码
...小于 1 分钟