title: Is there a way to access google cloud SQL via proxy inside docker container
body: <p>I have multiple docker machines(dev,staging) running on Google Compute Engine which hosts Django servers(this needs access to Google Cloud SQL access). I have multiple Google Cloud SQL instances running, and each instance is used by respective docker machines on my Google Compute Engine instance. </p>
  
  <p>Currently i'm accessing the Cloud SQL by whitelisting my Compute Engine IP. But i dont want to use IPs for obvious reasons ie., i dont use a static ip for my dev machines.</p>
  
  <p>But Now want to use google_cloud_proxy way to gain the access. But How do i do that ! GCP gives multiple ways to access google Cloud SQL instances. But none of them fit my usecase:</p>
  
  <p>I have this option <a href="https://cloud.google.com/sql/docs/mysql/connect-compute-engine" rel="noreferrer">https://cloud.google.com/sql/docs/mysql/connect-compute-engine</a>; but this </p>
  
  <ol>
  <li>only gives my computer engine access to the SQL instance; which i have to access from my Docker.</li>
  <li>This doesn't support me to proxy multiple SQL instances on same compute engine machine; I was hoping to do this proxy inside the docker if possible . </li>
  </ol>
  
  <p>So, How do I gain access to the CLoud SQL inside Docker ? If docker compose is a better way to start; How easy is it to implement for kubernetes(i use google container engine for production)    </p>