title: Init script for Cassandra with docker-compose
body: <p>I would like to create keyspaces and column-families at the start of my Cassandra container.</p>
  
  <p>I tried the following in a <code>docker-compose.yml</code> file:</p>
  
  <pre><code># shortened for clarity
  cassandra:
      hostname: my-cassandra
      image: my/cassandra:latest
      command: "cqlsh -f init-database.cql"
  </code></pre>
  
  <p>The image <code>my/cassandra:latest</code> contains <code>init-database.cql</code> in <code>/</code>. But this does not seem to work.</p>
  
  <p>Is there a way to make this happen ?</p>