我已在我的plesk服务器上使用ubuntu 14.04 LTS设置了mongodb docker镜像。关于mongo一切正常,我可以从shell和robot 3t访问。我需要使用mongo express从基于web的界面管理mongo db。
我已按照图片中设置变量,但是在日志中出现了问题,我无法访问Web界面。
![enter image description here](https://istack.dev59.com/yWOWD.webp)
Waiting for mongo:27017...
Fri Sep 28 19:22:57 UTC 2018 retrying to connect to mongo:27017 (2/5)
Fri Sep 28 19:23:03 UTC 2018 retrying to connect to mongo:27017 (3/5)
Fri Sep 28 19:23:09 UTC 2018 retrying to connect to mongo:27017 (4/5)
Fri Sep 28 19:23:15 UTC 2018 retrying to connect to mongo:27017 (5/5)
Welcome to mongo-express
------------------------
Mongo Express server listening at http://0.0.0.0:8081
/docker-entrypoint.sh: line 14: mongo: Try again
/docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Invalid argument
/docker-entrypoint.sh: line 14: mongo: Try again
/docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Invalid argument
/docker-entrypoint.sh: line 14: mongo: Try again
/docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Invalid argument
/docker-entrypoint.sh: line 14: mongo: Try again
/docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Invalid argument
/docker-entrypoint.sh: line 14: mongo: Try again
/docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Invalid argument
[31mServer is open to allow connections from anyone (0.0.0.0)[39m
/node_modules/mongodb/lib/server.js:265
process.nextTick(function() { throw err; })
^
MongoError: failed to connect to server [mongo:27017] on first connect
at Pool.<anonymous> (/node_modules/mongodb-core/lib/topologies/server.js:326:35)
at emitOne (events.js:116:13)
at Pool.emit (events.js:211:7)
at Connection.<anonymous> (/node_modules/mongodb-core/lib/connection/pool.js:270:12)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at Connection.emit (events.js:214:7)
at Socket.<anonymous> (/node_modules/mongodb-core/lib/connection/connection.js:175:49)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
我做错了什么?
谢谢