This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Unable to connect to mongoDB using fig #142
Comments
Ok, I have found a possible explanation, I'm using boot2docker on OSx (https://github.com/boot2docker/boot2docker) which apparently uses NAT forwarding. This means that I can't use 0.0.0.0 or localhost, but I have to use the ip that boot2docker provides
So now I'll have to investigate how to forward this ip (which is probably dynamicly created) to fig or the mean project docker's mongodb ip |
I've got this problem too.
using lxc-docker, under ubuntu 14.04 64 VPS.
|
A slight change to the db configuration in config/env/development.js should make it work. module.exports = {
db: 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev',
... |
alex2006hw
pushed a commit
to alex-node/mean
that referenced
this issue
Nov 21, 2014
brownman
added a commit
to linnovate/mean
that referenced
this issue
Dec 17, 2014
this should allow running 1 container for the db and 1 for the web-app as seen here: meanjs/mean#142
loyaldev03
added a commit
to loyaldev03/mean_stack_dev
that referenced
this issue
Jan 8, 2018
this should allow running 1 container for the db and 1 for the web-app as seen here: meanjs/mean#142
This was referenced Sep 12, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I try to launch the application locally with 'fig up', the application can't connect to mongoDB.
Howerver, 'docker ps' lists the containers and the ports (+ forwarding) are looking fine:
When starting fig:
Anyone an idea? I'm new to fig/docker but I'm very interested to start using it. Thanks
The text was updated successfully, but these errors were encountered: