No video

Deploying FastAPI Apps Over HTTPS with Traefik Proxy

  Рет қаралды 46,865

Traefik Labs

Traefik Labs

3 жыл бұрын

Learn how to easily build a modern web API in Python with FastAPI and then deploy it to production with HTTPS, powered by Traefik, to serve all your cloud needs.
This session start swith a simple FastAPI application developed locally and end with it deployed on a remote DigitalOcean cloud server, properly secured and served with HTTPS using Traefik.
In this event you'll learn, step by step, how to:
* Create a simple FastAPI application, running locally.
* Create a Docker image for our application, using the official Docker images for FastAPI.
* Run and test it locally with Docker Compose.
* Set up a remote cloud server in DigitalOcean from scratch.
* Install and configure the necessary components.
* Configure the DNS records for the domain.
* Configure and set up Traefik in the cloud server.
* Add the necessary configurations to connect the FastAPI application with Traefik.
* Transfer, build, and deploy the application.
* Review how Traefik acquires and updates the certificates with Let's Encrypt.
* Check and ensure that HTTPS is working.
Q & A from the session: gist.github.co...
About Sebastián:
Sebastián Ramírez (@tiangolo) is the creator of FastAPI, Typer, and other open source tools.
For more about Traefik Labs visit: www.traefik.io

Пікірлер: 48
@bahadirkacar
@bahadirkacar 3 жыл бұрын
"THE MAN" HIMSELF OMG
@georgerobertkplivi6250
@georgerobertkplivi6250 2 жыл бұрын
Who best to explain Fastapi than the creator himself. ❤️ I'm honoured to be before you. God of Fastapi 🤗
@softcoda
@softcoda 3 жыл бұрын
Wowww...one if the best complete tutorials simplified and packed this one video. It's amazing all your explanations are just on point. 👌 I have come to understand so many concepts from docker, docker-composr, https, etc....👌👌👌
@Luk4s97
@Luk4s97 4 ай бұрын
Nice Explanations! I didnt get my app working with traefik on a remote host with multiple other tutorials. Now it finally works, thanks alot
@88andreaw
@88andreaw 3 жыл бұрын
This is really useful! Thank you Sebastian! 🇨🇴
@josesavioli3982
@josesavioli3982 3 ай бұрын
Super nice explanation! The best material and explanation on docker with traefik and basic api configuration!
@r.sp.378
@r.sp.378 Жыл бұрын
thanks for this video, i finally got a grasp of docker and docker-compose. Great video overall.
@imj5296
@imj5296 3 жыл бұрын
This is the best tutorial ever!
@maheshkariya
@maheshkariya 3 жыл бұрын
Now I started to make videos on Fast API and here is the creator 🙂
@pablogonzalezrobles4429
@pablogonzalezrobles4429 3 жыл бұрын
Do You know how to deploy fastApi in a cPanel shared server? Just want to know if that is possible
@madsfrost9464
@madsfrost9464 3 жыл бұрын
This is just what I needed, thank you :)
@jacobstrauss3835
@jacobstrauss3835 Жыл бұрын
Amazing video thank you Sebastián!!
@eduardogil1775
@eduardogil1775 3 жыл бұрын
Exelente video, Gracias por compartir! 😎
@FedericoCipriani27
@FedericoCipriani27 3 жыл бұрын
Thanks for such tutorial... Gracias! It would be very useful to have a gist with the code used. Cheers,
@TraefikLabs
@TraefikLabs 3 жыл бұрын
He provides some resources here: dev.to/tiangolo/deploying-fastapi-and-other-apps-with-https-powered-by-traefik-5dik
@hamitaksln
@hamitaksln 2 жыл бұрын
Great tutorial. Thanks a lot!
@lbasavaraj
@lbasavaraj 3 жыл бұрын
Thanks a ton, Followed every step, but stuck with 404 error after adding traefik @38:00. Can some one please please help if you came across this? I have been stuck on this for days
@TraefikLabs
@TraefikLabs 3 жыл бұрын
Please share your issues at the Community Forum. Thanks! community.traefik.io/
@TheAmazingpower
@TheAmazingpower 3 жыл бұрын
Thank you for sharing this, I didn't know traefik and FastAPI are that powerful. Is there a repo to the code used in this session?
@TraefikLabs
@TraefikLabs 3 жыл бұрын
He provides some resources here: dev.to/tiangolo/deploying-fastapi-and-other-apps-with-https-powered-by-traefik-5dik
@NiKo-yn4wn
@NiKo-yn4wn 3 жыл бұрын
Why creating two docker-compose files? Wouldn't it be simpler to create all services (traefik, backend, etc) or am I missing something?
@ApartmentAngelsFireStarters
@ApartmentAngelsFireStarters Жыл бұрын
Docker-compose are scope bound, its like if you have 2 computers, 1 runs on port 80 on their ip, and the 2nd one also runs something on port 80. If you ran the same software on 1 computer 2 times on port 80, you can't do it.
@rawgov
@rawgov 2 жыл бұрын
I'm very new to API development. I thought that I'll need an NGINX server to scale up the backend. Is Traefik a replacement for Nginx? Or should I add Nginx underneath this? Sorry if this is a noob question.
@mehmetaliozer2403
@mehmetaliozer2403 3 жыл бұрын
Is there any repository for the project, I couldn't find it. Thanks.
@LukePighetti
@LukePighetti Жыл бұрын
21:00 I have never seen this use of haveged before. Can someone give me a little more information on why it's used in this context with docker-compose, and if it's still needed in 2023?
@felixeduardomirandateran824
@felixeduardomirandateran824 2 жыл бұрын
hi, is an extension that u use to detect the virtual enviroment?
@muhammedhusseinkarimi1002
@muhammedhusseinkarimi1002 Жыл бұрын
Why not create a network with docker compose
@RajivRivero
@RajivRivero Күн бұрын
Same question
@okay_1204
@okay_1204 3 жыл бұрын
Is it possible to have something like mydomain.me for a website running on netlify, and then app.mydomain.me for my FastAPI application running on DigitalOcean? I don't know why but my API keeps going down randomly
@paularah8877
@paularah8877 3 жыл бұрын
Yes. I did this recently. create a subdomain record in your netlify DNS and have it point to the IP address of your VPS. set the rules on your router for the specific service you're routing to and that should do it.
@mukulkumar-xn2vx
@mukulkumar-xn2vx Жыл бұрын
can you run this fastapi app in iis server?
@hackwithharsha5228
@hackwithharsha5228 3 жыл бұрын
00:23:24 - is it good practice to use `rsync` for production applications. I have seen people install git in the remote server and then clone repository, please confirm if someone knows, when to use `rsync` and `git clone` ?
@TraefikLabs
@TraefikLabs 3 жыл бұрын
Please feel free to ping Sebastian on Twitter: twitter.com/tiangolo
@hackwithharsha5228
@hackwithharsha5228 3 жыл бұрын
@Francisco Javier Lendinez Tirado Thank You for taking your time to resolve my query...
@mmoralitos99
@mmoralitos99 2 жыл бұрын
in my litle experience, you will have to deal with more credentials, copying the files you need to prod instead whole project content also leaves you more space in pro
@user-dw2il9ij8k
@user-dw2il9ij8k 2 жыл бұрын
how can I deploy FastAPI app on my own cpanel host ??
@nehz_ttv
@nehz_ttv 2 жыл бұрын
Better!!!
@Xjdivjnzj65386
@Xjdivjnzj65386 3 жыл бұрын
Thanks would you explain how to deploy FastAPI on cpanel?
@pablogonzalezrobles4429
@pablogonzalezrobles4429 3 жыл бұрын
Same question. Did You figure it out @Javad
@ianrickey208
@ianrickey208 3 жыл бұрын
Sebastian - I need 4 years experience with FastAPI to get a job. Can you help? /s
@hackwithharsha5228
@hackwithharsha5228 3 жыл бұрын
Looks like, FastAPI itself released in 2019.. How anyone will get 4 years experience ?
@ianrickey208
@ianrickey208 3 жыл бұрын
@@hackwithharsha5228 that was Sabastian’s problem too /s
@hackwithharsha5228
@hackwithharsha5228 3 жыл бұрын
@@ianrickey208 Yup, I have seen his tweet after your comment.. :)
@cristian-bull
@cristian-bull 3 жыл бұрын
- It was created in 2019. How come you have 4 years of experience? - overtime
@ianrickey208
@ianrickey208 3 жыл бұрын
@@cristian-bull boss answer Cristian!
Как делают и зарабатывают на Open Source
23:00
Senior Software Vlogger
Рет қаралды 89 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 184 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 41 МЛН
Бутылка Air Up обмани мозг вкусом
01:00
Костя Павлов
Рет қаралды 2,2 МЛН
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 5 МЛН
Traefik 3 and FREE Wildcard Certificates with Docker
39:37
Techno Tim
Рет қаралды 100 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 545 М.
Manage Your Dotfiles with Home Manager!
32:06
LibrePhoenix
Рет қаралды 53 М.
Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial
21:57
Christian Lempa
Рет қаралды 510 М.
Manage multiple sites with Docker Compose and Traefik
8:35
Andrew Schmelyun
Рет қаралды 45 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 269 М.
An Illustrated Guide to OAuth and OpenID Connect
16:36
OktaDev
Рет қаралды 577 М.
4 Tips for Building a Production-Ready FastAPI Backend
27:02
ArjanCodes
Рет қаралды 58 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 184 МЛН