This is a sample repository that you can refer to when building projects that needs to be deployed to Google Cloud Run. The sample project used in this repository is directly copied from the sample app from the FAST API documentation. LINK
This repository also contains a github action that automatically builds the docker image and deploy it Google Cloud Run on new commits, just visit ./github/workflow/deploy_changes.yml
- Python 3.10
- FAST API
- PostgreSQL 14
- SQLAlchemy (for ORM)
- Docker
- Google Cloud Run
- Google Cloud SQL
-
Install Docker Desktop on your computer. Instruction might vary depending on your OS.
-
Run the app in dev mode (with hot-reload) `docker compose up -d
-
Enjoy!
- run
gcloud auth login
and select the appropriate account - run
gcloud config set project <your-project-id>
to set the default project details in gcloud cli - run
gcloud app deploy app.yaml
and confirm the deployment - Wait till it says success