title: Rancher with postgresql
body: <p>I'm trying to run Rancher as a container using a postgresql database, instead of the Rancher database. In the documentation (<a href="http://docs.rancher.com/rancher/installing-rancher/installing-server/" rel="nofollow">http://docs.rancher.com/rancher/installing-rancher/installing-server/</a>) is written that you can use an external database but it mentions only mysql. I was wondering if it is possible to use another external database like postgresql. 
  So, i tried starting the container with the below command pointing it to the postgresql database running on the same host as the container:</p>
  
  <pre><code>docker run -d --restart=always -p 8080:8080 -e CATTLE_DB_CATTLE_MYSQL_HOST=127.0.0.1 -e CATTLE_DB_CATTLE_MYSQL_PORT=5432 -e CATTLE_DB_CATTLE_MYSQL_NAME=db_name -e CATTLE_DB_CATTLE_USERNAME=db_user -e CATTLE_DB_CATTLE_PASSWORD=some_password rancher/server
  </code></pre>
  
  <p>The above results in the container starting up but without using the postgresql database which i'm telling it to use. It uses instead the Rancher database.</p>
  
  <p>Tried also with the below but still the same results:</p>
  
  <pre><code>docker run -d --restart=always -p 8080:8080 -e CATTLE_DB_CATTLE_HOST=127.0.0.1 -e CATTLE_DB_CATTLE_PORT=5432 -e CATTLE_DB_CATTLE_NAME=db_name -e CATTLE_DB_CATTLE_USERNAME=db_user -e CATTLE_DB_CATTLE_PASSWORD=some_password rancher/server
  </code></pre>
  
  <p>I'm thinking that either the arguments that i've passed are wrong, or Rancher supports only mysql as an external database.</p>
  
  <p>Any ideas/suggestions ?</p>
  
  <p>Thank you,</p>