Web API that I'm trying to connect to an sqlserver database in the google cloud. Both the API and the dockerized instance of cloud sql proxy are in the same docker-compose file (and therefore on the same default bridge network). The docker-compose file
The docker-compose override is as follows:The docker-compose override file
Currently the UID and password for the sql server connection are being passed into the connection string directly from the appsettings.json
.
If I have the containers running, I can connect to my database via the proxy from within a local instance of the API run through visual studio (IIS Express) but for some reason if I make a request to the API once it's been containerized, I get a "
server was not found or accessible
Any ideas on what could be causing the issue?