Deploy a Dockerized FastAPI App to Google Cloud Platform

By Medium - 2020-12-01

Description

A short guide to deploying a Dockerized Python app to Google Cloud Platform using Cloud Run and a SQL instance.

Summary

  • FastAPI is an API based on Pydanticand Starlette.
  • FastAPI Documentation This interface can even be used to debug your application.
  • Visit GCP cloud run and click create service, be sure to set up billing as required.
  • MySQL_DB_CONN = os.getenv(“DB_CONN”) Be sure to add the above line to your database.py file so that it is ready to connect to the cloud!

 

Topics

  1. Backend (0.49)
  2. Database (0.11)
  3. Mobile (0.07)

Similar Articles

By Running a self-managed Kafka Connect worker for Confluent Cloud - 2021-01-24

Learn how to run #Kafka Connect worker for #Confluent #Cloud

Learning To Use Docker

By DEV Community - 2020-12-27

This is the second post in my series called "Demystifying Docker". While having read the first post i... Tagged with beginners, tutorial, devops, docker.