无法通过docker-compose启动的docker容器连接到neo4j Web Pannel [英] Cant connect into neo4j web pannel via docker container launched with docker-compose
问题描述
在我的docker-compose.yml
上方,我插入了以下条目:
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'
现在,当我通过浏览器访问 http://0.0.0.0:7474/browser/但是以某种方式,当我输入以下凭据时,它无法登录:
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:
- 主机:bolt://localhost:7687
- 用户:neo4j
- 密码:不是我真正的密码的某密码
但是它无法登录并显示错误响应:
But it fails to login with an error response:
ServiceUnavailable:WebSocket连接失败.由于您的Web浏览器中的安全限制,因此Neo4j驱动程序无法找到失败的原因.请使用您的浏览器进行开发.
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?
推荐答案
You put the wrong port as mentions over: https://hub.docker.com/_/neo4j/ the neo4j listens over these ports:
- 7474
- 7687
后一个错误被映射到您的docker compose上.在您的docker-compose.yml
上的两个地方都应该是7687:7687
而不是7687:7487
.
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
.
这篇关于无法通过docker-compose启动的docker容器连接到neo4j Web Pannel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!