'How to deploy a full stack application with cron job using Digital Ocean?
Overview
I've been working on a full-stack application that I would like to deploy. I've been thinking about using digital ocean but would like some feedback on what would be the best path to success.
Architecture
My application has a front end (Angular 11), back-end/api (express/node), Postgres DB, and a python cron job that runs daily. I have everything dockerized in separate images as well using docker-compose.
Options
The two options I was thinking of were to deploy all containers using docker-compose in one droplet or separate them out and deploy the backend/database/cron on digital ocean with my angular front end in Firebase or Vercel.
I'm leaning towards option 1 rn but was wondering if there were any cons to docker-compose deployments on digital ocean compared to the other option. How would you go about deploying an application with this stack? Would you use docker-compose for this?
Thanks for the help :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
