I'm using Flask as my backend and MongoDB for storing the data. I've connected my Website to MongoDB Atlas and tested everything locally and it works as expected. But when I try deploying the website to Google Cloud Platform (GCP) MongoDB doesn't work at all. The only configuration file that I have is app.yaml and it looks like this:
runtime: python
env: flex
entrypoint: gunicorn -b :$PORT main:app
runtime_config:
python_version: 3
handlers:
- url: /static
static_dir: static
- url: /.*
script: auto
I have connected my project to an Instance and enabled API Engine. For deployment, I simply ran the following command in Cloud Shell
gcloud app deploy
Do I need any other configuration files to run MongoDB? Or is the whole process wrong and I need to do it in another way.