meanjs / generator-meanjs

MEAN.JS Official Yeoman Generator
http://meanjs.org/
473 stars 178 forks source link

Question: running meanjs in Docker connect to localhost mongo #194

Open cataquil opened 8 years ago

cataquil commented 8 years ago

I have build the DockerFile as an image I can run it fine, I was wondering what command I could use to have the meanjs docker container connect to the mongoDB running on the host.

Is this possible, I assume it must be but could require some port mapping. the example in fig.yml shows both MongoDB and MeanJS running in 2 containers.

ilanbiala commented 8 years ago

I'm not really sure what you're asking. Can you clarify?

cataquil commented 8 years ago

here is the example of using the generator-meanjs DockerFile

blog.giantswarm.io/getting-started-with-docker-and-meanjs/

codydaig commented 8 years ago

@cataquil It is possible, but I am unsure the exact command syntax necessary to do it. That would be a good question for the Docker IRC channel. It becomes tricky too depending on your environment and OS.