Does anybody know how to containerize an app and database in the same EC2 instance using ECS? DNS Resolution isn't working with bridge network mode (as expected) and introducing a Load Balancer using awsvpc has failed me so far. Any suggestions on how to do this are appreciated.
Isn't docker-compose deprecated and docker compose is preferred? Also, why pull the sourcecode down, rather than build the container in CI and push to ECR or dockerhub then you don't need the dotnet SDK installed on the instance. Of course, I wouldn't run this way in production. I would at least use ECS.
Yes, you are absolutely right. This was just a basic demo of setting up a simple solution for beginners to learn the basics of deploying to EC2. So, didn't want to go into depth about CICD Pipelines. I will cover it as part of my future GitHub Actions / Terraform Videos.
@@codewithmukesh OK, just a small concern, because people see a video like this about "hosting" an API on docker, and assume it's ok, and do it. But, your video had no dislaimers about how this type of deployment should be used, etc. This is far from how you would host a .Net API in production in cloud. Also, how to host postgres in either.
Your technical content is impressively clear and well-structured, making complex concepts accessible and engaging. Thanks Mukesh 🎉
Thank you so much!
Hey, Mukesh great video
Please make some videos
.Net, Azure
Does anybody know how to containerize an app and database in the same EC2 instance using ECS? DNS Resolution isn't working with bridge network mode (as expected) and introducing a Load Balancer using awsvpc has failed me so far. Any suggestions on how to do this are appreciated.
Also, Mukesh. If you have any that you could add, please do. Thank you.
Thanks!
Isn't docker-compose deprecated and docker compose is preferred?
Also, why pull the sourcecode down, rather than build the container in CI and push to ECR or dockerhub then you don't need the dotnet SDK installed on the instance.
Of course, I wouldn't run this way in production. I would at least use ECS.
Yes, you are absolutely right. This was just a basic demo of setting up a simple solution for beginners to learn the basics of deploying to EC2. So, didn't want to go into depth about CICD Pipelines. I will cover it as part of my future GitHub Actions / Terraform Videos.
@@codewithmukesh OK, just a small concern, because people see a video like this about "hosting" an API on docker, and assume it's ok, and do it. But, your video had no dislaimers about how this type of deployment should be used, etc.
This is far from how you would host a .Net API in production in cloud. Also, how to host postgres in either.