Run a docker container on AWS | Dockerization with Django - Part 5

  Рет қаралды 6,195

Cloud With Django

Cloud With Django

Күн бұрын

Пікірлер: 28
@CloudWithDjango
@CloudWithDjango 2 жыл бұрын
{ "containerDefinitions": [ { "name": "my-django-application", "image": "", "memory": "256", "cpu": "256", "essential": true } ], "networkMode": "bridge", "family": "django-app-task-definition" } Note: Remember to create a new revision for your port mapping as the video shows! :)
@flukymaze
@flukymaze 8 ай бұрын
legend
@StudyStreamPlus
@StudyStreamPlus Жыл бұрын
Another great tutorial. One piece of feedback: Since you are going through a lot of detail in forms and web pages, it might good to have a diagram of what you are trying to achieve for visual learners such as myself. Thanks again. Great stuff.
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you! I appreciate your feedback! Of course, anytime! :)
@ankitsrivastava7473
@ankitsrivastava7473 11 ай бұрын
How about we add another video to the playlist? "Implementing CI/CD pipleines on a dockerised django application deployed on AWS"?
@CloudWithDjango
@CloudWithDjango 11 ай бұрын
Thank you for your suggestion!
@drakata27
@drakata27 5 ай бұрын
Do you have a tutorial with an Application Load Balancer?
@CloudWithDjango
@CloudWithDjango 5 ай бұрын
Hi, Yes, I do in my AWS fundamentals playlist
@enricosaccheggiani3192
@enricosaccheggiani3192 Жыл бұрын
Great, Thanks a lot I have deployed my site on aws , I have overcome many problems but it works correctly . Thanks a lot for your help and your videos . Only one question, whether i have to modify my image , is only necessary to update the image on ecr and rerun the application? Thanks in advance
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Hi Enrico, My pleasure! I'm glad that my video tutorial helped you! Yes, that is correct! Everytime that you update your application, you just need to push a fresh docker image. Now, if you want to automate the process I'd recommend looking into the AWS CI/CD services (mainly CodeCommit, CodeBuild, CodePipeline and CodeDeploy). This will save you the time from manually creating/pushing your latest docker images. All the best, Arno
@powertechnical
@powertechnical 7 ай бұрын
I get stuck with creating the service under the cluster with no luck!!
@CloudWithDjango
@CloudWithDjango 7 ай бұрын
Hi, I'd suggest double checking your application to see if it works locally and then to ensure that you have enough resources assigned to your cluster/service etc.
@reminderclips
@reminderclips 6 ай бұрын
Same here, I think AWS updated their services. Really difficult to follow old console. Figuring out, will keep you posted.
@reminderclips
@reminderclips 6 ай бұрын
One things I noticed is that the memory and cpu values’ unit. In json they are just 256. And it caused problems for me. In console for creating task definition (I mean webpage), it’s GB. And it’s only one of the problem…
@reminderclips
@reminderclips 6 ай бұрын
Solved it. Find the issue in task -> logs. Mine was docker-compose Dockerfile wrong address
@sohaibkhan1395
@sohaibkhan1395 11 ай бұрын
Thank you so much for your content, it has helped me a lot with my deployments. I have a question that how do I run migrations on such an infrastructure?
@CloudWithDjango
@CloudWithDjango 11 ай бұрын
You're welcome! There are many ways to approach this one way is to run migrations by executing commands inside your running Django container. You can do this manually or automate it as part of your deployment process with the AWS CLI. After that you can monitor the ECS service logs to ensure that the migration process is successful. You can use AWS CloudWatch logs or the ECS console to check the container logs.
@iroplouf
@iroplouf Жыл бұрын
This tutorial is amazing really...I have been following your videos and learnt a lot. One thing is that I have followed the different videos and got to the point where I have a django project working, s3 bucket for media and static done (thanks to you!), I even created a docker image and now I am trying to install gunicorn and Nginx with Docker. I am quite lost at this stage. Do you have a video that shows how to set it up by any chance? (dockerfile, nginc.conf...etc.) This would be amazing!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
HI, Thank you so much for your kind comment. I'm glad that you are learning a lot and it's a great pleasure! I see. Unfortunately, on KZbin no. I do however have a Udemy course that is focused on deploying a Django application with Nginx to Amazon ECS. Which focuses on using Nginx as a reverse proxy by utilising a docker file and nginx. If that is of interest to you or what you are looking for: You can see the course on my website: www.cloudwithdjango.com/courses/ All the best to you!
@iroplouf
@iroplouf Жыл бұрын
@@CloudWithDjangoPerfect! You are ace! I just got to work my app with nginx without docker just now using your course! you are a champion! I will check the Udemi courses later once I have confident enough. keep up with the good work!
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Thank you! And of course, no worries at all, I'm glad to hear that you came right with everything!
@reminderclips
@reminderclips 7 ай бұрын
How do you connect to rds?
@CloudWithDjango
@CloudWithDjango 7 ай бұрын
Hi, You'd need to connect it within your settings.py file before applying docker to your application
@reminderclips
@reminderclips 6 ай бұрын
@@CloudWithDjango so, I don’t need to write environment in task definition? That makes sense, let me try it. Will keep you posted. Thanks!
@varunkolluru-nu4yq
@varunkolluru-nu4yq Жыл бұрын
if i want to update my django code, then we can just push the new docker image and then remove the old task definition and create new task definition with new image uri (no need to create new cluster and can continue with old cluster) . and add new service and so on......everything will be same except creating new cluster again right?
@CloudWithDjango
@CloudWithDjango Жыл бұрын
Hi, Yes, that is one way in which you can do it with how you are suggesting to do so. And yes you don't need to create a new cluster.
@varunkolluru-nu4yq
@varunkolluru-nu4yq Жыл бұрын
@@CloudWithDjango thankyou soo much for your reply and this is very helpful.
@Coden69
@Coden69 2 жыл бұрын
Let's go
Dockerize a Django web app | Full course
1:20:47
Cloud With Django
Рет қаралды 4 М.
Controle de fluxo com #if e #else
4:01
Luciano Ratamero
Рет қаралды 9
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
How to Deploy a Docker App to AWS ECS
24:18
Laith Academy
Рет қаралды 118 М.
Auto Scaling and Load Balancing on AWS
22:53
Digital Cloud Training
Рет қаралды 7 М.
How to Easily Deploy a Spring Boot Application to AWS EC2
17:42
The Dev World - by Sergio Lema
Рет қаралды 58 М.
Deploy a Django web app on Amazon EC2
21:47
Cloud With Django
Рет қаралды 107 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 406 М.
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 495 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН