title: docker-compose rails rake db:reset fails, "cannot drop the currently open database"
body: <p>I can't seem to reset my database while using docker compose. I've tried killing the server, killing just the database, and restarting the machine.</p>
  
  <p>Anyone know the best way to clear out the development database?</p>
  
  <p>Here's what I tried:</p>
  
  <pre><code>docker-compose run web rake db:reset
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>PG::ObjectInUse: ERROR:  cannot drop the currently open database
    : DROP DATABASE IF EXISTS "postgres"
    Couldn't drop database 'postgres'
    rake aborted!</p>
  </blockquote>
  
  <p>I'm using the setup exactly as described by the docker-compose quickstart: <a href="https://docs.docker.com/compose/rails/" rel="noreferrer">https://docs.docker.com/compose/rails/</a></p>
  
  <p>I have a rails container and a postgres container</p>