Python Web Application Deployment Tutorial - Docker Compose with Gunicorn, NGINX, Postgres - Part 2

Опубликовано: 15 Октябрь 2024
на канале: JimShapedCoding
9,197
241

#Flask #Docker #DockerCompose #Python
Welcome to a new series about Flask and Docker combined!
In this video, you will learn the best practices to deploy your Web application do production, using Docker Compose which will include three containers. We will use Gunicorn as a WSGI server for our Flask app, we will also include NGINX which will give us higher performance to our application, and as well as Postgres DB as our Database.


👍 Subscribe for more Tutorials like this!
   / @jimshapedcoding  
🔥 Comment below on other topics you want to see tutorials next on my Channel.
-----------------------------------------------

My website:
http://www.jimshapedcoding.com​

🎥 My YouTube Gear 🎥
Camera (Canon EOS 250D) : https://amzn.to/314euVC
Microphone ( Rode NT-Mini) : https://amzn.to/3bDqEer
Keyboard ( Razer Blackwidow Green Switch ) : https://amzn.to/3bExDnu
Mouse ( Razer LanceHead ) : https://amzn.to/3if0JuV
Lights ( Neewer 2-Pack Dimmable ): https://amzn.to/3oFN1DP


Useful Links:
Docker Compose Documentation and Download - https://docs.docker.com/compose/install
Docker Official Documentation - https://docs.docker.com/get-docker/
Chocolatey Installation: https://www.chocolatey.org/install (will help you to automate installation on your windows machine)
Docker Hub (All the official Images) - https://hub.docker.com/

GitHub Repository with the code of the project: (Scroll down to the 16th folder)
https://github.com/jimdevops19/FlaskS...


Timeline:
Intro to Docker Compose - 00:00 - 03:00
Creating Custom NGINX Docker Image - 03:01 - 11:58

Creating Docker Compose YAML file - 11:59 - 22:32
Docker Compose Up - 22:33 - 26:40
Docker Service Names in a Network - 26:41 - 28:32
Using Gunicorn instead of app.run() - 28:32 - 37:10
Creating Postgres Container - 37:11 - 01:00:00