Config file for Neo4j Docker Image

人盡茶涼 提交于 2020-01-01 09:18:20

问题


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


回答1:


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

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

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

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


来源:https://stackoverflow.com/questions/38017768/config-file-for-neo4j-docker-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!