Neo4j Docker映像的配置文件 [英] Config file for Neo4j Docker Image

查看:275
本文介绍了Neo4j Docker映像的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I installed neo4j-3.0 as a docker image in Mac OSX. Where can I locate the config file for neo4j ?

推荐答案

他们有专门的

They have a dedicated section on their page for that ...

共有3种方式:通过环境变量,安装/conf卷和构建新映像

There are 3 ways: via environment variables, mounting a /conf volume and building a new image

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

The /conf volume is probably the way the OP wants:

要对Neo4j配置进行任意修改,请提供 带有/conf卷的容器.

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

/conf卷中的任何配置文件都将覆盖文件 由图片提供.这包括可能已在其中设置的值 对Docker传递给容器的环境变量的响应. 因此,如果您要更改文件中的一个值,则必须确保 文件的其余部分完整且正确.

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.

要转储初始的配置文件集,请使用 dump-config命令.

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

这篇关于Neo4j Docker映像的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆