Skip to content

Deploying FastAPI Apps Over HTTPS with Traefik Proxy

2021 1 h 4 min Traefik Labs en YouTube

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: https://gist.github.com/kubopanda/4dcee98c620fb4d031601cc0e35ce335 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

Chapters

  1. 0:00 Start
  2. 0:12 Who Am I
  3. 1:37 How Https Works
  4. 4:15 Create a Virtual Environment
  5. 5:50 Deploy a Fast Api Application to a Remote Server
  6. 6:49 Interactive Documentation
  7. 7:17 Create a Git Repository
  8. 10:17 Connect to that Remote Server with Ssh
  9. 12:25 Docker File
  10. 12:28 Create a Docker Image
  11. 13:15 To Create a Docker Image
  12. 16:05 Install Docker on the Remote Server
  13. 16:27 Install Docker Compose
  14. 17:10 Docker Compose File
  15. 17:13 Docker Compose File
  16. 18:19 Install Docker
  17. 19:39 Start the Docker Container
  18. 28:07 Enable a Docker
  19. 39:02 Add Https
  20. 42:14 Changes in the Main Docker Compose File
  21. 47:13 Add the Dashboard for Traffic
Channel
Traefik Labs
Views
226

More like this