Cant connect into neo4j web pannel via docker container launched with docker-compose

时光毁灭记忆、已成空白 提交于 2020-03-05 04:58:08

问题


Over my docker-compose.yml I have inserted the following entries:

version: '2'
services:
neo4j_dev:
    image: 'neo4j'
    ports:
      - '7474:7474'
      - '7687:7487'
    volumes:
      - './docker-volumes/neo4j_dev/data:/data'
    environment:
      NEO4J_AUTH: 'neo4j/somepasswdthatisnotmyrealpassword'

Now when I visit over my browser http://0.0.0.0:7474/browser/ but somehow when I enter the following credentials it fails to login:

  • host: bolt://localhost:7687
  • user: neo4j
  • password: somepasswdthatisnotmyrealpassword

But it fails to login with an error response:

ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers developm.

Do you know what's wrong with the settings and I cannot login?


回答1:


You put the wrong port as mentions over: https://hub.docker.com/_/neo4j/ the neo4j listens over these ports:

  • 7474
  • 7687

The latter one is mismapped over your docker compose. Instead of 7687:7487 it should be 7687:7687 on both on your docker-compose.yml.



来源:https://stackoverflow.com/questions/48311160/cant-connect-into-neo4j-web-pannel-via-docker-container-launched-with-docker-com

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