![]() ![]() That’s lame! Let’s free it! Open the container, map the ports ![]() Our database is up and running but trapped alone in its container :/ But the container is isolated, so only programs INSIDE the container can talk to Mongo. According to the last lines of the Dockerfile our db is available on port “27017” as a default: EXPOSE 27017 CMD īut Mongo exposes itself on this port INSIDE the container. You can access the official Mongo image Docker files somewhere in this folder hosted on GitHub to understand better what happens here. Run the following commands in your terminal and observe the results: docker run -name my-lame-db -d mongoĪs simple as that, we just created an isolated container that runs Mongo! I invite you to read Docker’s official installation doc here and install it, which takes only a few minutes. 1 - Let’s discover Docker Our first container Post your questions as comments if you have any, I’ll do my best to answer all of them. Don’t give up! The result is worth the hassle, as mastering Docker and AWS are two skills very appreciated by employers, and very useful in real life. Important note: it’s perfectly fine if it takes you multiple sessions to finish this looong tutorial. So I cannot plug my Python servers to my Meteor managed databases out-of-the-box :(Ī paid service would do the job by providing an URL for the hosted database, such as this one: why spend money when you can struggle for hours to set up your own Mongo database on AWS using Docker, and learn tons of useful tricks in the process? It’s even better if someone, say, me, does it first and writes a lengthy tutorial to make things easier for you! The sacred three of the full data developer: Meteor, Mongo, Pythonīut there is a problem: Meteor Up currently does not expose the Mongo database, only the local Meteor app can connect to it. I call this “full data development”, as it goes from the raw data source to the end user interface. Sometimes, I like to use both Python to extract and process data and Meteor to create the user interface. It’s both easy to use and suited for high performance. Python is excellent for web scraping and data science. Neat is actually an understatement, it’s freakin’ awesome.Īnd I am also a Python developer. There is a neat tool called Meteor Up to automatically deploy Meteor apps and the associated Mongo databases on production servers. It stores documents as JSON and its shell uses JavaScript, which are some reasons why it is so appreciated by Node.js developers. MongoDB is a NoSQL database management system (DBMS). Meteor is a full-fledged Node.js framework, pretty nice for SaaS, real-time apps, prototyping, management softwares and a lot of other use cases.Īs a default, it works with MongoDB. More precisely I use Vulcan.js, but that’s a whole other story. Why you need this? Because JS + Python + Mongo = full data development ![]()
0 Comments
Leave a Reply. |