如何在docker中设置Neo4j conf? [英] How to set Neo4j conf in docker?
问题描述
我曾经分别运行Neo4j,然后我的应用程序根据需要进行了交互.每次我重新安装Neo4j时,都必须转到/etc/neo4j/neo4j.conf
并注释以下一行:
I used to run Neo4j separately and then my application interacted with it as required. Every time I fresh installed Neo4j, I had to go to /etc/neo4j/neo4j.conf
and comment this one line:
dbms.directories.import=/var/lib/neo4j/import
通过在
开头放置#
使事情对我有用.默认情况下,此行未评论.
无论如何,我现在要移至docker
,我想知道如何在docker
环境中更改该行?
by putting a #
in start of it to make things work for me. By default this line wasn't commented.
Anyways, I am moving to docker
now, and I want to know how to change that line in docker
environment?
这是我在docker文件中的neo4j
部分.
Here's my portion of neo4j
in docker file.
neo4j:
container_name: neo4j_container
restart: always
image: neo4j:3.5.3
ports:
- "7474:7474"
- "6477:6477"
- "7687:7687"
environment:
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_dbms_connector_http_listen__address=:7474
- NEO4J_dbms_connector_https_listen__address=:6477
- NEO4J_dbms_connector_bolt_listen__address=:7687
我正在使用的Neo4j
的图像是neo4j:3.5.3
.
The image of Neo4j
I am using, as you can see is neo4j:3.5.3
.
推荐答案
在做
volumes:
- /:/var/lib/neo4j/import
为我修复了该问题.
这篇关于如何在docker中设置Neo4j conf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!