Article

How To Setup Docker In Hostinger And Deploy Any Docker Image

Intro

In this guide, you guys would learn how to set up any of My tools or any Docker image in Hostinger.
To do that, we definitely need a Hostinger VPS. To grab one, click here . You can grab any if you want to, but I recommend going for at least KVM 2 if you want to host multiple Docker images or tools.

Updating VPS

After buying the VPS, you will be in the hpanel, and we are almost there for the fun part, but before that, we need to update the VPS once. And it's fairly simple.

Image Showing Hpanel And Indicating How to Open the VPS terminal
Select Your VPS and Click On Docker Manager From there Select terminal
Image Showing Hostinger VPS terminal
it would Open A new tab In the Browser Copy the Code From below And paste It. (Note: you have to right Click to Paste)
CODE
apt update && apt upgrade -y

Installing the Docker manager

We can close the terminal window and go back to the previous screen. And install the Docker manager.

Image Showcasing How to Install Docker Manager
You can Click On Install And it Would show a Pop up Click Install there as well.

After a few minutes you will get a successful notification. And We Are Ready for the Best Part

Deploying

Now we are ready to deploy. Our Docker Compose. For this demonstration, we will be using MetaLink . Grab The Docker Compose from the Product Page

Image Showing how to Select manual Compose in hPanel
From Docker Manager Select Compose-> Manual Compose
Image Showing Using Manual Docker Compose In Docker Manager In hPanel
And Paste the Copied Docker Compose from the Product Page
Important Note
Don't forget to change secret values like ADMIN_USERNAME, ADMIN_PASSWORD, TOKEN_SYMMETRIC_KEY to make your deployment super secure. Please Follow the Product page for Instructions.

Now set a name for the deployment. You can set anything you like. And click Deploy.

Installing traefik

We need to install Traefik. So that we can connect the domain to our Docker service. Traefik also handles SSL certificates. Making Our Deployment Secure. After you install your first Docker Compose and come back to Docker Manager, you will see an option to install Traefik. Install it, and now we can use Our service With Our Domain

IMPORTANT
You need to connect the Domain And Setup DNS for Domain to Work