I’m new to docker-compose. I’m learning to run Airflow using docker-compose. I’m trying to connect to my google cloud. However, when I trigger DAG, I found an error message raise exceptions.DefaultCredentialsError( google.auth.exceptions.DefaultCredentialsError: File application_default_credentials.json was not found.
I have tried several attempts by putting application_default_credentials.json file in the dags folder, config folder but I still get an error. After googling about this error, I think I need to mount the application_default_credentials.json to docker.
Thanks for replying my question above.
Did you mean that I need to adjust the docker-compose.yaml file by adding another image and with type: bind, and write source and target pointing to application_default_credentials.json ?