VPS proper way to run?

Rollfic

Elite Member
Joined
Dec 13, 2019
Messages
1,580
Reaction score
723
Hello, non techy here (never used VPS for site before)

Going with DO + plesk/cpanel.

What else to be done to run and secure the VPS without doing much work? Was reading some topics and came to know VPS needs to be constantly updated, simple installing and updating plugins can break stuff? feels a bit uneasiness coming from shared hosting tho.

Cloudways is not an option as of now.
 
I would recommend Docker + ansible for the deployment. Yepp there is a learning curve to both, but once you learn them, deployments/updates are as simple as a single command (can be ad hoc ansible commands, or playbooks) from your laptop/desktop.

It is a huge topic, and pretty hard to summerize in a post be honest.
 
I would recommend Docker + ansible for the deployment. Yepp there is a learning curve to both, but once you learn them, deployments/updates are as simple as a single command (can be ad hoc ansible commands, or playbooks) from your laptop/desktop.

It is a huge topic, and pretty hard to summerize in a post be honest.
Yes mate, that's why I am confused.

Any particular video(s) that shows all of that?
 
Yes mate, that's why I am confused.

Any particular video(s) that shows all of that?
For docker
Code:
https://www.youtube.com/watch?v=pTFZFxd4hOI

For ansible (ansible is optional though), watch this one and the other ones in the series as well..
Code:
https://www.youtube.com/watch?v=goclfp6a2IQ

In all honesty, you could just do it with docker-compose, but that way, you have to login to the server through ssh, check the project out from your git repo and type docker-compose up (as well as setup the nginx virtual host etc...). These things can also be automated using ansible, hence the suggestion.


p.s. if you get stuck somewhere, always feel free to tag me here, or pm me. Will help you out. :)
 
For docker
Code:
https://www.youtube.com/watch?v=pTFZFxd4hOI

For ansible (ansible is optional though), watch this one and the other ones in the series as well..
Code:
https://www.youtube.com/watch?v=goclfp6a2IQ

In all honesty, you could just do it with docker-compose, but that way, you have to login to the server through ssh, check the project out from your git repo and type docker-compose up (as well as setup the nginx virtual host etc...). These things can also be automated using ansible, hence the suggestion.


p.s. if you get stuck somewhere, always feel free to tag me here, or pm me. Will help you out. :)
Thanks a lot for those links.

Time to learn :)
 
I would recommend Docker + ansible for the deployment. Yepp there is a learning curve to both, but once you learn them, deployments/updates are as simple as a single command (can be ad hoc ansible commands, or playbooks) from your laptop/desktop.

It is a huge topic, and pretty hard to summerize in a post be honest.
The OP mentioned he is not techy. I am guessing the OP simply wants to host his own websites.
If this is the case, Docker is almost completely not needed. Docker is to containerize projects so they can be easily deployed in any environment. It will be an overkill for a Non tech guy to learn it just to upload websites.

I would suggest the OP looks for a company that offers Managed VPS services.
 
The OP mentioned he is not techy. I am guessing the OP simply wants to host his own websites.
If this is the case, Docker is almost completely not needed. Docker is to containerize projects so they can be easily deployed in any environment. It will be an overkill for a Non tech guy to learn it just to upload websites.

I would suggest the OP looks for a company that offers Managed VPS services.
We have all been there one day. I would not classify anyone as "non tech guy" lol. Dude is trying to learn the art of devops, slowly but surely. Otherwise, he would not mess with vpses to begin with.

It goes without saying, docker/ansible can ease the pain of having to install everything manually, as well as backups and so on.
 
We have all been there one day. I would not classify anyone as "non tech guy" lol. Dude is trying to learn the art of devops, slowly but surely. Otherwise, he would not mess with vpses to begin with.

It goes without saying, docker/ansible can ease the pain of having to install everything manually, as well as backups and so on.

Looking at it that way, you have a point...
Still Docker is something that discourages Tech guys at 1st glance. Not to talk of Non Tech people.

Maybe because It took me and colleges at my level a while to understand why exactly Docker is needed even though we already had several years experience in Development.

I think I started to understand the whole point when my PERFECTLY WORKING Node project or PHP Composer Project fails miserably when executed on a different machine. After minutes - hours of debugging, turns out to be a version issue with 1 of the "1 million packages". That's when the entire point of containerization made sense :D
 
Looking at it that way, you have a point...
Still Docker is something that discourages Tech guys at 1st glance. Not to talk of Non Tech people.

Maybe because It took me and colleges at my level a while to understand why exactly Docker is needed even though we already had several years experience in Development.

I think I started to understand the whole point when my PERFECTLY WORKING Node project or PHP Composer Project fails miserably when executed on a different machine. After minutes - hours of debugging, turns out to be a version issue with 1 of the "1 million packages". That's when the entire point of containerization made sense :D
Haha Docker can be messy. For node-based projects, it mostly works just fine (except for one or two cases for arm64). I would say the hardest part to learn about docker would be the networks. I once had to join an external network created by another docker-compose file. Damn, I spent around 3 days just learning how network works in docker. When it finally worked, I had tears in my eyes. :p All for good though, I think I now have a clear understanding of it.

All in all, if you take the time, you will get good at anything. :)
 
Last edited:
Back
Top