Best deployment choice? :(

If you really care about flexibility, cost efficiency but struggle a bit with DevOps (my story :blush:) then I would suggest you the following:

  1. Make yourself familiar with Docker and learn how to containerize your Strapi project
  2. Get a cheap VPS on Digital Ocean, Vulture, Hetzner etc. (Recommended is >= 1CPU 2GB RAM)
  3. Make sure you get the basics of server security right when setting up your VPS
  4. Don’t reinvent the wheel and make use of CapRover or Dokku to create your very own PaaS (in other words Heroku)
  5. Install your MySQL/PostgresSql/MongoDB
  6. Upload your containrized Strapi (best via Github/Gitlab for CI/CD)
  7. Connect your project with your database
  8. Run a cheap and flexible project :rocket:

Optionally you could consider opting for a managed database from Digital Ocean, Heroku etc. to hand over the DB provision and security to an expert provider. For a small/mid-sized project I do not see the value in this though.

That is 1:1 my setup and it has been working great so far. Curious what others think about this approach.

3 Likes