Rather than depending upon a clustered docker-compose development setup in production with a working just for the sake of working CI/ CD setup following things can be opted with the case of cloud resources kept in mind:
- Creating a build pipeline that will build react code into production build and then deploy to a bucket or Blob Storage
- Instead of using copy via ssh and copying files for implementation CI, plays (ansible) should be run for building backend image, deploying to docker hub, pulling into production environment (VM) and then restarting app.
- If resources are limited then work within docker-compose constraints or try to refactor effectively by incorporating container images into k8 cluster using Kubernetes which will orchestrate the complete setup
Rather than depending upon a clustered docker-compose development setup in production with a working just for the sake of working CI/ CD setup following things can be opted with the case of cloud resources kept in mind: