GrandNode and MongoDB in a 3 minutes - the fastest installation with Docker

grandnode on cloud grandnode in 5 minutes the fastest grandnode installation the fastest ecommerce installation

Few days ago I described you how to create a DigitalOcean droplets and how to install GrandNode and MongoDB with Docker on them. It was easy way, but you need to spend some time with it. Today, I will show you how to install GrandNode and MongoDB just in a 3 minutes. It's one of the fastest way to install GrandNode!

How to create an account and Droplet?

It's very simple process. I've described it in our earlier tutorial. You can check it here. 

How to install GrandNode?

Now let's begin the journey. In the previous tutorial, you learned how to install GrandNode and MongoDB in different droplets. It was easy, but you need to make some customizations to secure your mongodb. Today I will show you how to create a single droplet with multiple docker containers. 

Please login to your DigitalOcean droplet with your new account. Please remember to install Droplet with One-Click app - Docker. It's required! 

If you installed your droplet, open the cmd or console and let's start the installation process. Use the following command to install MongoDB on your server. 

docker run -d -p 127.0.0.1:27017:27017 --name mongodb mongo

Docker run MongoDB

It will pull the newest image of mongo. 

Now let's install GrandNode and link it to installed MongoDB.

docker run -d -p 80:80 --name grandnode --link mongodb:mongo grandnode/release_4.10

Docker run GrandNode

Where grandnode is the name of your container, you can name it by yourself and where mongodb is a name of your mongodb container.

And that's all. Open the website with the droplets IP and install GrandNode. During installation, as the name of MongoDB server use the name of your mongodb container (in my case it's mongodb).

It's really one of the simplest and the fastest way of installing GrandNode. 

Question not answered here? Ask the community on GitHub Discussions ↗