我有一个问题,关于从 Synology NAS DS415+ 运行 RocketChat
Docker 是从软件包中心安装的 GUI 版本。
您下载图像并启动容器 - 然后运行该容器的 UI 设置。
我使用默认设置启动了 mongo:latest 和 rocket.chat:latest 容器。mongo 启动并运行 - 但 rocket.chat 容器启动 - 运行几秒钟然后关闭。
该怎么办?
以下是 rocket.chat 启动尝试的日志输出,其中 mongo 正在运行:
/app/bundle/programs/server/node_modules/fibers/future.js:313 stdout 09:43:29 throw(ex); stdout 09:43:29 ^ stdout 09:43:30 MongoError: failed to connect to server [db:27017] on first connect stdout 09:43:30 at Object.Future.wait (/app/bundle/programs/server/node_modules/fibers/future.js:449:15) stdout 09:43:30 at new MongoConnection (packages/mongo/mongo_driver.js:211:27) stdout 09:43:30 at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16) stdout 09:43:30 at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10) stdout 09:43:30 at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19) stdout 09:43:30 at new Mongo.Collection (packages/mongo/collection.js:99:40) stdout 09:43:30 at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18) stdout 09:43:30 at new AccountsServer (packages/accounts-base/accounts_server.js:18:5) stdout 09:43:30 at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12) stdout 09:43:30 at fileEvaluate (packages/modules-runtime.js:197:9) stdout 09:43:30 - - - - - stdout 09:43:30 at [object Object].<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/topologies/server.js:326:35) stdout 09:43:30 at emitOne (events.js:77:13) stdout 09:43:30 at [object Object].emit (events.js:169:7) stdout 09:43:30 at [object Object].<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:270:12) stdout 09:43:30 at [object Object].g (events.js:260:16) stdout 09:43:30 at emitTwo (events.js:87:13) stdout 09:43:30 at [object Object].emit (events.js:172:7) stdout 09:43:30 at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:175:49) stdout 09:43:30 at Socket.g (events.js:260:16) stdout 09:43:30 at emitOne (events.js:77:13)
答案1
感谢讨论,我能够在运行 DSM 6.1.6 的 DS716+II 上运行 Rocket.chat这里。
首先,使用默认设置启动 mongo:latest 容器。现在,在启动 rocket.chat:latest 容器之前,添加以下设置(右键单击容器 > 修改):
- 在链接选项卡中,单击“+”图标并选择您的 mongo 容器。在别名字段中,输入“db”作为值(不带“ ”)
- 在环境选项卡中,添加一个新值,输入“-d”作为变量,输入“rocket.chat”作为值。
现在你应该能够启动容器并通过以下方式访问它http://你的本地ip:3000(或者您为 rocket.chat 容器选择的任何端口)。