将neo4j从neo4j 3.4.10升级到3.5.3后,docker-compose螺栓地址不起作用

时间:2019-02-20 10:24:49

标签: docker neo4j docker-compose

我使用docker-compose设置了几个neo4j容器,每个容器都有单独的端口。在3.5.3版中 NEO4J_dbms_connector_bolt_advertised__address:“:12051” 不再起作用。 它适用于3.4.10版,但不适用于3.5.3版。 知道如何更改吗?

这是我的docker-compose-file中的一个片段:

  neo4jWikidataPersons:
image: neo4j:3.5.3
environment:
  NEO4J_dbms_allow_upgrade: "true"
  NEO4J_dbms_security_procedures_unrestricted: "apoc*,graph-algo*"
  NEO4J_dbms_connector_bolt_advertised__address: "localhost:12051"
ports:
     - "12050:7474"
     - "12051:7687"
volumes:
     - $HOME/docker/neo4j/wikidataPersons/data:/var/lib/neo4j/data
     - $HOME/docker/neo4j/wikidataPersons/conf:/var/lib/neo4j/conf
     - $HOME/docker/neo4j/plugins-3.5:/plugins

1 个答案:

答案 0 :(得分:0)

在文件中,您必须在NEO4J_dbms_connector_bolt_advertised__address行中显式添加服务器的ip地址:

  neo4jWikidataPersons:
  image: neo4j:3.5.3
  environment:
    NEO4J_dbms_allow_upgrade: "true"
    NEO4J_dbms_security_procedures_unrestricted: "apoc*,graph-algo*"
    NEO4J_dbms_connector_bolt_advertised__address: "134.176.70.48:12051"
  ports:
       - "12050:7474"
       - "12051:7687"
  volumes:
       - $HOME/docker/neo4j/wikidataPersons/data:/var/lib/neo4j/data
       - $HOME/docker/neo4j/wikidataPersons/conf:/var/lib/neo4j/conf
       - $HOME/docker/neo4j/plugins-3.5:/plugins