dokku-mongodb-plugin
dokku-mongodb-plugin copied to clipboard
Multiple nodeJS app in one container
trafficstars
I'm trying to deploy two nodeJS apps to dokku.
I did the following
dokku mongodb:create app
dokku mongodb:create admin
Then
dokku config app
dokku config admin
And finally push the local repositories to dokku.
I would expect both apps to run but instead I'm getting the following error
Connection fails: { [MongoError: auth failed] name: 'MongoError', ok: 0, errmsg: 'auth failed', code: 18 }
It will be retried for the next request.
Apart from that, I want both apps to point to the same database, but I couldn't find an example of how to accomplish that
If you only deploy one of the applications will that one work?