Cant connect to database with Docker
Locally, I can connect to the DB with npm start
docker build test .and
docker run testand see it lifted and running.
Then I push it to Jenkins. Jenkins pull from my github and I have most things committed in github.
When Jenkins builds the image, it does not run locally. Do I need to commit more stuff to github? Here is my current .gitignore for nodebb
/// my .gitignore file
Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
Directory-based project format:
File-based project format:
Zip files for deployment
I run this docker image in google cloud platform from jenkins. If I grab teh jenkins built image and run it locally, it works as well. It must be that I am blocked to get an external DB connection from within google cloud. Im not sure about that though since the mongodb is hosted in mongolab and the ip is public :(