Hey everyone.
For all my previous projects I was usually buying DO droplet and manually setting up node/ruby on rails stack, Nginx, Postgres, Redis. After that it was taking me about half of the day to properly setup security policy for Postgres, Firewall, ssh keys, and etc.
is there nowadays some approach where I could spin up VPS with such things without too much hassle or not paying for any Paas?
I do understand that there are things like ansible and terraform, but there is a learning curve and configuration related to them. So I'm looking for something lightweight and simple. ( And of course docker and k8s is a bit of overshoot in my case )
Thanks!
Code your automation in Ansible. Since it uses SSH and does not require much on the server side, it should work out of the box.
As far as setting up Rails, Nginx, Postgres, etc, use containers (Docker, podman) with a docker-compose file to run them locally. You can also use docker-compose to for deploying on the server side as well, but at some point you'll find yourself needing a container orchestrator. Depending on your automation appetite and availability requirements, that point might be quite far off though.
As an upside, with the above scheme, you'd be able to deploy quickly and painlessly to any provider or hardware that you fancy.
You can have your image saved in DO and next time you create a server, use it as a template.
If you want to be vendor independent you can look into tools like chef, puppet or go with custom bash scripts
True, images in DO is one way of doing this
I usually create a new node with Docker preinstalled and start https://caprover.com/ on it, then just copy paste configs from my previous projects
Oh wow, this is probably what I have been looking for. Thank you!
Indie hackers uses https://render.com/ i believe
Well that is not very much different from Heroku. My question is about personal VPS