Modern Python Projects Transcripts
Chapter: Deployment
Lecture: Using Docker

Login or purchase this course to watch this video and the rest of the course contents.
0:00 The second way of deploying your Web application that I want to show you is to
0:04 use Docker. When you first start using Docker,
0:07 especially for such a simple application as we have here,
0:10 you might feel that we are over complicating things, instead of just running
0:14 pip install requirements.txt and then running the Uvcorn command.
0:19 Now we have to write a Docker file that will download something,
0:22 build something, move stuff around,
0:25 change some permissions and so on.
0:27 Sure, that's a bit more work.
0:28 But once we have that deploying our application is going to be much easier.
0:33 We can either find a managed Docker hosting provider that will take this image and run
0:38 it for us. Or we can just spin up a virtual server install docker and
0:43 tell it to run our image.
0:45 We no longer have to do all the installation steps by hand.
0:49 In the long run, it will save your time,
0:52 especially if you have a more complicated set up that requires having multiple services like a
0:57 database, redis server and other external tools talking with each other to follow the next lessons
1:04 Make sure that you have Docker installed on your computer.
1:07 If you don't just go to the Docker.com website and click this get started
1:11 button. Here just download the Docker for your operating system.
1:16 Ah, I clicked windows, But if you're on Mac,
1:19 click this download for Mac. If you're only linux,
1:22 you have to use this linux engine.
1:24 I already have Docker Installed.I'm not going to do this.
1:27 And if at some point you are asked to look in,
1:31 just go to the Docker Website and click sign in and creating a account there
1:35 it's free. Once we have Docker up and running,
1:38 let's move on to writing a Docker file.