I was having trouble getting my application to work but this video fixed that. I was working on it for over an hour this morning before finding your video. Thank you!
Another great tutorial setting up a simple Docker container using Docker Compose and also able to run a Django application with Postgresql as the backend.👍
Hi :-) I'm going to make one more video where I deploy this to Digital Ocean with a Ubuntu 20.04 server. This can also be used for Linode as well (And other Ubuntu server providers). I don't have any experience with Azure or Aws, so I don't think I'm able to do that :/
I'm on a Linux PC and after doing [docker compose run web...] I run into a "data/db" folder permissions error. Do you have any idea how I can solve it?
Can some one explain what is ./data/db Because I assume that there is no such file in the current directory and we are actually mapping that directory inside the container to postgres folder
Hi! I'm going to make one more video with Docker where I make it a little bit more advanced. This will include gunicorn, nginx and similar, and also how to deploy it to a live server ;-)
I think you can do what I did in the video, and then just run a command for importing the existing application. Or you can just change the contents of settings.py to point to your existing postgres.
@@CodeWithStein I didn't understand how did you open two tabs in vi to work like editors or switching between files inside of a directory? It seems magical to me.
I was having trouble getting my application to work but this video fixed that. I was working on it for over an hour this morning before finding your video. Thank you!
Nice, that is great :-D Glad it could help you :-D
Clean, Clear, and easily understandable tutorial great job Stein
Thank you so much 😁😁😁
Your teaching is great
Thank you so much 😁
I am finally relieved. Thanks very much bro.
Nice :-D
the best best best best best django channel! this is so premium. thank you!
Thank you so much :-D
Docker-compose was making me crazy until this video. Thanks. Liked & Subscribed also.
Great 😁 Thanks 😁
Another great tutorial setting up a simple Docker container using Docker Compose and also able to run a Django application with Postgresql as the backend.👍
Thank you so much Dale :-D
Great video! and congrats on 7k🎉
Thank you so much Tomi :-D
Thank you for the video, very clear
You’re welcome, glad you liked it 😁
thanks for the video!
You're welcome :-D
superb tutorial, as always. Don't you dare to change your style of showing things to us!!!!
Haha, thank you :-D
It’s finally here!
Yeah :-D
Thank you very much for this video!
You’re welcome 😁
Thank you so much
You’re welcome 😁
Finally, got the tutorial.
Thank you so much.
Yes :-D I hope you liked it :-D
You help me so much
Thank you!!!!!
I read ofical docs - i hate it
i saw your video - i like it! =)
Have a nice day !
Nice, thank you so much for the feedback 😁
Thank you for the video.
But can you please show project directory? how code, db etc folders placed in relation one to another.
Hey, I will add it to my list if ideas 👍🏻
That what I was looking for, I am noob in Docker.
Thank You Mr. Stein 😋
Nice :-D
best ever, make one deploying a docker postgresql django to azure AWS and linode pls
Hi :-) I'm going to make one more video where I deploy this to Digital Ocean with a Ubuntu 20.04 server. This can also be used for Linode as well (And other Ubuntu server providers).
I don't have any experience with Azure or Aws, so I don't think I'm able to do that :/
Is this just for new Django Projects, or will it be the same process for existing django projects?
This can be done for existing projects as well yes :-)
Thanks a lot for this tutorial Stein! I'm back to your channel! :)
Nice :-D Welcome back :-D
👏 amazing! I love u 💓
Thanks :-D
hello stein. in your deployment i could not see any docker implementationin digitalocean . any reason for that?
Hmm, not sure why. I'm working on a new video now though, i will use docker locally and on digital ocean there :-)
Amazing video, only question is what changes you have to make for production?
Hey, there is a few small tweaks for security I think. I never use Docker in production :P I always just stick to simple virtual environments :-)
I'm on a Linux PC and after doing [docker compose run web...] I run into a "data/db" folder permissions error. Do you have any idea how I can solve it?
Hey, Hmm not sure… maybe use the chown command?
thanks a lot!
You're welcome :-D
Great
Thanks :-D
This is awesome!! Thank you for this awesome tutorial
Thank you Wale :-D
How can one run such a command [pip install django-filter] using docker-compose
Hi, you can add it to the requirements.txt file. I think that should handle it ☺️
Can some one explain what is ./data/db
Because I assume that there is no such file in the current directory and we are actually mapping that directory inside the container to postgres folder
Hi, that is correct yes :-)
can you share with us how we can deploy our django project deploy on docker?
Hi! I'm going to make one more video with Docker where I make it a little bit more advanced. This will include gunicorn, nginx and similar, and also how to deploy it to a live server ;-)
@@CodeWithStein Can you please share that video's link in this thread or in the video's description section, so we can find it easily?
I haven’t made it yet 😛😛🤷🏼♂️
I'm really stuck in this postgres connection for an existing application
I think you can do what I did in the video, and then just run a command for importing the existing application. Or you can just change the contents of settings.py to point to your existing postgres.
Can you make video on multiple django website hosting on same Ec2 server🤔
Hi! I don't have any experience with Ec2, so I can't :/
@@CodeWithStein No problem was giving an idea of content haha, bcz there's less videos of deployment
Hey Stein, thank you for this great introduction!
My question is about development and production, do you usually use the same compose files for both?
Hi, thank you :-D
Yes, you usually use the same files, but they will be more complicated. So they can handle environments and similar ;-)
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here :(
Hmm, not sure where this is coming from :S Maybe a Windows error?
good
Thanks 😁
First🧨
Nice 😁😁
@@CodeWithStein the idea with a mug is super👍😂
WAIT.... YOU'RE USING VI!!!!!
Haha, sometimes yes 😁😁
@@CodeWithStein I didn't understand how did you open two tabs in vi to work like editors or switching between files inside of a directory? It seems magical to me.
Do you use Windows or Mac?
python manage.py runserver is only for dev and not for production :(
Yes ;-) I'm going to make a more advanced video with Docker where I include deployment, nginx, gunicorn and similar as well ;-)
who is coming here after CS50W
Certainly not me at least :-D :P