gpt4 book ai didi

macos - Neo4j Docker 镜像的配置文件

转载 作者:IT老高 更新时间:2023-10-28 21:24:44 26 4
gpt4 key购买 nike

我在 Mac OSX 中将 neo4j-3.0 安装为 docker 镜像。我在哪里可以找到 neo4j 的配置文件?

最佳答案

他们有一个专门的section在他们的页面上...

有3种方式:通过环境变量、挂载/conf卷和构建新镜像

/conf 卷可能是 OP 想要的方式:

To make arbitrary modifications to the Neo4j configuration, provide the container with a /conf volume.

docker run \
--detach \
--publish=7474:7474 --publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/conf:/conf \
neo4j:3.1

Any configuration files in the /conf volume will override files provided by the image. This includes values that may have been set in response to environment variables passed to the container by Docker. So if you want to change one value in a file you must ensure that the rest of the file is complete and correct.

To dump an initial set of configuration files, run the image with the dump-config command.

docker run --rm\
--volume=$HOME/neo4j/conf:/conf \
neo4j:3.1 dump-config

关于macos - Neo4j Docker 镜像的配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38017768/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com