Deploying FastAPI Apps Over HTTPS with Traefik Proxy

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

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.com/kubopanda/4dc...
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

Пікірлер: 47
@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 🤗
@88andreaw
@88andreaw 3 жыл бұрын
This is really useful! Thank you Sebastian! 🇨🇴
@madsfrost9464
@madsfrost9464 3 жыл бұрын
This is just what I needed, thank you :)
@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!
@eduardogil1775
@eduardogil1775 3 жыл бұрын
Exelente video, Gracias por compartir! 😎
@hamitaksln
@hamitaksln 2 жыл бұрын
Great tutorial. Thanks a lot!
@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....👌👌👌
@jacobstrauss3835
@jacobstrauss3835 Жыл бұрын
Amazing video thank you Sebastián!!
@Luk4s97
@Luk4s97 3 ай бұрын
Nice Explanations! I didnt get my app working with traefik on a remote host with multiple other tutorials. Now it finally works, thanks alot
@josesavioli3982
@josesavioli3982 2 ай бұрын
Super nice explanation! The best material and explanation on docker with traefik and basic api configuration!
@maheshkariya
@maheshkariya 3 жыл бұрын
Now I started to make videos on Fast API and here is the creator 🙂
@pablogonzalezrobles4429
@pablogonzalezrobles4429 2 жыл бұрын
Do You know how to deploy fastApi in a cPanel shared server? Just want to know if that is possible
@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
@felixeduardomirandateran824
@felixeduardomirandateran824 2 жыл бұрын
hi, is an extension that u use to detect the virtual enviroment?
@mehmetaliozer2403
@mehmetaliozer2403 3 жыл бұрын
Is there any repository for the project, I couldn't find it. Thanks.
@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.
@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
@nehz_ttv
@nehz_ttv 2 жыл бұрын
Better!!!
@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/
@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?
@mukulkumar-xn2vx
@mukulkumar-xn2vx Жыл бұрын
can you run this fastapi app in iis server?
@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.
@muhammedhusseinkarimi1002
@muhammedhusseinkarimi1002 Жыл бұрын
Why not create a network with docker compose
@user-dw2il9ij8k
@user-dw2il9ij8k 2 жыл бұрын
how can I deploy FastAPI app on my own cpanel host ??
@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.
@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
@Xjdivjnzj65386
@Xjdivjnzj65386 3 жыл бұрын
Thanks would you explain how to deploy FastAPI on cpanel?
@pablogonzalezrobles4429
@pablogonzalezrobles4429 2 жыл бұрын
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!
Build an AI app with FastAPI and Docker - Coding Tutorial with Tips
35:18
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 13 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 21 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Как делают и зарабатывают на Open Source
23:00
Senior Software Vlogger
Рет қаралды 89 М.
Modern Python through FastAPI and friends. Sebastián Ramírez.
47:03
PyCon Lithuania
Рет қаралды 18 М.
How To Use Docker To Make Local Development A Breeze
21:53
ArjanCodes
Рет қаралды 301 М.
Simple Serverless FastAPI with AWS Lambda
17:04
DeadbearCode
Рет қаралды 36 М.
Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial
21:57
Christian Lempa
Рет қаралды 501 М.
FastAPI Celery, Flower and Docker
29:33
Very Academy
Рет қаралды 52 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 5 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 46 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,7 МЛН
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 107 М.