-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using mongodb - get the ip of the container? #14
Comments
Can you post the config file? |
I've tried different types of node images
|
Hey Adam, the
|
Did you try the Dockunit.json wizard on Dockunit.io? It uses the |
Which wizard? I changed the image to which makes sense, since my app doesn't know the ip of the docker container, so I can't set it in my config file. I have no way to hook the db to docker Does this makes since? does dockunit exposes any ENV_VARIABLES like it's ip? so maybe I could go |
Hmm I see. Can't you just check if Dockunit is running and check Mongodb on localhost? |
what do u mean check mongoDB on localost? it is already pointing to localhost |
So can't you just reference the Mongo instance like that? Why do you need the container IP? |
because I get the reference error I posted |
Hmm, I would debug by starting the Docker container manually and seeing what is going on with Mongo inside of it. |
in my config file I've set the mongodb url to
mongodb://localhost/nodeparking_dev
but I'm getting this error:
Error: connect ECONNREFUSED 127.0.0.1:27017
is there a way for the node code to know what's the ip of the container?
do u have any examples using dockunit with a db?
The text was updated successfully, but these errors were encountered: