unable to connect to mongodb
peterclemenko opened this issue · 5 comments
It's undocumented how to configure the mongodb connection and I can't figure out how to connect to it. I tried changing the configs according to an earlier issue and it won't connect.
this was the issue I based my configs on, it didn't work
#5
Can I see your configuration file? and your Configuration module/service and AppModule? Thanks
configuration service/module is from git. So is appmodule. Here is my config. Note this is all being run from docker compose
{ "JWT_KEY": "MySecret!123", "MONGO_URI": "mongodb://localhost:27017/meantest", "PORT": "3000", "HOST": "localhost" }
@AoiGhost if you're running inside of Docker, then your MONGO_URI cannot be localhost but whatever the name you give to mongo container in docker_compose.
Yep, that was it. Thanks!