NodeBB with Docker full chain ( nginx, redis, mongodb )
-
UPDATE
A
MongoDB
is added as a default DB !!!
And redis is intened to be used for websock blabla, but I'm not sure it's properly working.What I know actually, no errors, no warnings and I can see both of mongo and redis at admin web UI.
If anybody would try this docker chain, please let me know results.
-
Hi! I tried installing your docker container. After executing the instruction "./bin/docker-compose up" I put the nodebb setting in my browser, but then I got one of these errors in the terminal where I ran the docker-container:
error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
or
error: NodeBB could not connect to your Mongo database. Mongo returned the following error: connect ECONNREFUSED 127.0.0.1:27017
One of full logs: nodebb_1 | Welcome to NodeBB! nodebb_1 | nodebb_1 | This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. nodebb_1 | Press enter to accept the default setting (shown in brackets). nodebb_1 | nodebb_1 | 26/5 16:52 [50] - info: Now configuring redis database: nodebb_1 | Configuration Saved OK nodebb_1 | Populating database with default configs, if not already set... nodebb_1 | 26/5 16:52 [50] - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379 nodebb_1 | at Object.exports._errnoException (util.js:870:11) nodebb_1 | at exports._exceptionWithHostPort (util.js:893:20) nodebb_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
or
nodebb_1 | Welcome to NodeBB! nodebb_1 | nodebb_1 | This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. nodebb_1 | Press enter to accept the default setting (shown in brackets). nodebb_1 | nodebb_1 | 26/5 19:27 [32] - info: Now configuring mongo database: nodebb_1 | Configuration Saved OK nodebb_1 | 26/5 19:27 [32] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: connect ECONNREFUSED 127.0.0.1:27017 nodebb_1 | 26/5 19:27 [32] - warn: NodeBB Setup Aborted. nodebb_1 | Error: connect ECONNREFUSED 127.0.0.1:27017 nodebb_1 | at Object.exports._errnoException (util.js:870:11) nodebb_1 | at exports._exceptionWithHostPort (util.js:893:20) nodebb_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
-
I tried you repo, but unfortunately the Mongo container fails:
mongodb_1 | Error relocating /usr/bin/mongod: _ZNK5boost16re_detail_10600031cpp_regex_traits_implementationIcE17transform_primaryEPKcS4_: symbol not found mongodb_1 | Error relocating /usr/bin/mongod: _ZNK5boost16re_detail_10600031cpp_regex_traits_implementationIcE9transformEPKcS4_: symbol not found nodebbdockerdev_mongodb_1 exited with code 127
Searching StackOverflow it seems this is an issue with Mongo on Alpine...
(I using Docker beta for MacOS, but I don't think this is the issue)
-
npm either isn't installed or is installed incorrectly.
-
I try to this docker chain, and got some error after exec
sudo ./bin/com-nodebb npm install
:Successfully built ee060087bd12
Successfully tagged nodebbdockerdev_nodebb:latest
npm WARN saveError ENOENT: no such file or directory, open '/opt/nodebb/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/opt/nodebb/package.json'
npm WARN nodebb No description
npm WARN nodebb No repository field.
npm WARN nodebb No README data
npm WARN nodebb No license field.and idea?
-
Don't use
sudo
. What tutorial or guide are you using? -
@alphagao link me whatever guide you're using. If you don't know what to do, use this guide:
Ubuntu (Recommended) - NodeBB Documentation
Documentation portal for NodeBB Forum Software
(docs.nodebb.org)