Docker is an open-source project that automates the deployment of applications inside software containers.
MongoDB is an open-source document database and leading NoSQL database. MongoDB is written in C++.
Docker containers wrap up a piece of software in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries - anything you can install on a server. This guarantees that it will always run the same, regardless of the environment it is running in.
MongoDB is document database in which one collection holds different different documents, which makes it schema less. Number of fields, content and size of the document can be differ from one document to another. It also has deep query-ability. MongoDB supports dynamic queries on documents using a document-based query language that's nearly as powerful as SQL. MongoDB is easy to scale & conversion / mapping of application objects to database objects is not needed. It uses internal memory for storing the (windowed) working set, enabling faster access of data.
Using Docker and containers for deploying MongoDB instances will bring several benefits, such as:
Easy to maintain, highly configurable MongoDB instances.
Ready to run and start working within milliseconds.
Based on globally accessible and shareable images.
In this tutorial, we will learn how to build a Docker image with MongoDB.
An operating system which supports Docker containers & has Docker installed.
A static IP Address for your server.
A non-root user account with sudo privilege set up on your server.
Create a Docker Container
Create a directory in which we will write Dockerfile and keep all configuration files in it, if required.
sudo mkdir /Dockercd /Docker
Create a file named Dockerfile using the following command,
sudo nano Dockerfile
Add following content into the Dockerfile.
MAINTAINER Firstname Lastname email@example.com
You can create an email email filters through your cPanel control panel which is where you manage your hosting account. Email filters can be set up to target specific word, subject, from or to. Emails that are filtered out can be sent to a different email, deleted, delivered to a...
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...