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

查看:17
本文介绍了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 ?

推荐答案

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

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天全站免登陆