Deploying FastAPI Apps Over HTTPS with Traefik Proxy
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
- 0:00 Start
- 0:12 Who Am I
- 1:37 How Https Works
- 4:15 Create a Virtual Environment
- 5:50 Deploy a Fast Api Application to a Remote Server
- 6:49 Interactive Documentation
- 7:17 Create a Git Repository
- 10:17 Connect to that Remote Server with Ssh
- 12:25 Docker File
- 12:28 Create a Docker Image
- 13:15 To Create a Docker Image
- 16:05 Install Docker on the Remote Server
- 16:27 Install Docker Compose
- 17:10 Docker Compose File
- 17:13 Docker Compose File
- 18:19 Install Docker
- 19:39 Start the Docker Container
- 28:07 Enable a Docker
- 39:02 Add Https
- 42:14 Changes in the Main Docker Compose File
- 47:13 Add the Dashboard for Traffic
- Channel
- Traefik Labs
- Views
- 226