Python Web Application Deployment Tutorial - Using Docker & Docker Compose - Part 1

preview_player
Показать описание
#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 the best deployment tools like Docker and Docker Compose, and more!

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

My website:

🎥 My YouTube Gear 🎥

Useful Links:

GitHub Repository with the code of the project: (Scroll down to the 16th folder)

Timeline:
The app we will deploy to production - 00:00 - 02:55
Creating the Dockerfile and organizing configurations - 05:29 - 13:31
Building and running Flask container - 13:32 - 17:36
Configuring Database configurations - 17:37 - 26:39
Testing the application with DEBUG on&off - 26:40 - 31:25
Рекомендации по теме
Комментарии
Автор

Great video, thanks Jim! Can't wait to see the next one!

johnpipo
Автор

This is the "best practices" python docker video I've dreamed about. Good work man, the amount/quality of content you have up is truly impressive.

caseyclayton
Автор

Hoping to learn Docker in the future
Thank you, Jim

bahdev
Автор

oh man, you are doing a really good job. keep up the good work

bhupendrayadav
Автор

Whats the folder structure of the dockerized app? I am getting error do docker run flaskapp_dev
Traceback (most recent call last):
File "/code/run.py", line 1, in <module>
from market import app
ModuleNotFoundError: No module named 'market'

clairekim
Автор

thanks for the awesome explanation, for the last part of the video, I try to enter the right credentials admin/admin, but also the connection was failed .can you explain why, please

deyaafattal
Автор

This is a great tutorial. Is there any reason, inside the Dockerfile, you copy requirements.txt into /code/ directory in one step and then copy the remaining files in another step? Why not copy all at once?

haopeiyang
Автор

I'm not able to run on localhost using docker compose. How to do ? here's my yaml file



version: '3.3' # version of compose format

services:
landing-service:
build: ./landing # path is relative to docker-compose.yml location
hostname: landing-service
ports:
- "5001:5000" # host:container
networks:
sample:
aliases:
- landing-service
# Add more services below
networks:
sample:

siddharthmagadum
Автор

does this still work a django project ?

sarahlink
Автор

Where are you from? What is this cute accent

AliAli-oiys
Автор

I am getting the following error while building the docker image : => ERROR [5/6] RUN pip3 install -r requirements.txt 4.1s

> [5/6] RUN pip3 install -r requirements.txt:
#10 3.464 Collecting flask
#10 3.581 Downloading Flask-2.1.2-py3-none-any.whl (95 kB)
#10 3.642 95.2/95.2 KB 2.3 MB/s eta 0:00:00
#10 3.714 ERROR: Could not find a version that satisfies the requirement flask-sqlalachemy (from versions: none)
#10 3.716 ERROR: No matching distribution found for flask-sqlalachemy
#10 3.939 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
#10 3.939 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

YasarBinGursain