Neo4j群集卡住“试图连接到其他群集成员”

时间:2018-08-24 09:35:43

标签: docker neo4j docker-compose

我正在尝试使用docker-compose运行Neo4j集群。 当我启动它时,集群成员陷入“尝试继续连接到其他集群成员之前……”

我还尝试按照这些文档中的描述使用普通docker运行,结果相同: https://neo4j.com/docs/operations-manual/current/installation/docker/#docker-cc

有人成功使用docker运行集群吗?

这是我的撰写文件:

version: '3'

networks:
  lan:

services:

  core1:
    image: neo4j:3.4.6-enterprise
    networks:
      - lan
    ports:
      - 7474:7474
      - 6477:6477
      - 7687:7687
    volumes:
      - $HOME/neo4j/neo4j-core1/conf:/conf
      - $HOME/neo4j/neo4j-core1/data:/data
      - $HOME/neo4j/neo4j-core1/logs:/logs
      - $HOME/neo4j/neo4j-core1/plugins:/plugins
    environment:
      - NEO4J_AUTH=neo4j/changeme
      - NEO4J_dbms_mode=CORE
      - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes      
      - NEO4J_causal_clustering_minimum_core_cluster_size_at_formation=2
      - NEO4J_causalClustering_initialDiscoveryMembers=core1:5000,core2:5000
      - NEO4J_dbms_connector_http_listen__address=:7474
      - NEO4J_dbms_connector_https_listen__address=:6477
      - NEO4J_dbms_connector_bolt_listen__address=:7687

  core2:
    image: neo4j:3.4.6-enterprise
    networks:
      - lan
    ports:
      - 7475:7475
      - 6478:6478      
      - 7688:7688      
    volumes:
      - $HOME/neo4j/neo4j-core2/conf:/conf
      - $HOME/neo4j/neo4j-core2/data:/data
      - $HOME/neo4j/neo4j-core2/logs:/logs
      - $HOME/neo4j/neo4j-core1/plugins:/plugins      
    environment:
      - NEO4J_AUTH=neo4j/changeme
      - NEO4J_dbms_mode=CORE
      - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes      
      - NEO4J_causal_clustering_minimum_core_cluster_size_at_formation=2
      - NEO4J_causalClustering_initialDiscoveryMembers=core1:5000,core2:5000
      - NEO4J_dbms_connector_http_listen__address=:7475
      - NEO4J_dbms_connector_https_listen__address=:6478
      - NEO4J_dbms_connector_bolt_listen__address=:7688

0 个答案:

没有答案