title: Spring Cloud Config Server using SSH key for Git and running in Docker
body: <p>I found many questions and tutorials before finally putting this all together.   Wanted to document it so somebody else can save many hours of frustration.</p>
  
  <p>I am trying to get a private git repository on BitBucket to work with Spring Boot Config Server using deploy keys and have it run in Docker.  I am running into many issues.</p>
  
  <ol>
  <li>How to actually configure using the application.yml files. </li>
  </ol>
  
  <p>I cant seem to figure out where I should put the SSH info.  All tutorials seem to be for https.</p>
  
  <ol start="2">
  <li>How to provide the private key to the configuration.  For Dev the syntax for inline in YML is a pain.  For production, you have to provide it via an environment variable, which is another syntax chore.</li>
  </ol>
  
  <p>I keep getting an error that the private key is invalid.</p>
  
  <ol start="3">
  <li>How to get the Docker container to trust the host key without that pesky "do you trust this guy" prompt.</li>
  </ol>
  
  <p>There seems to be several ways to make this work, but only one that worked for me.</p>