Docker Compose mysql import .sql
<p>I'm having trouble importing an .sql dump file with docker-compose. I've followed the docs, which apparently will load the .sql file from docker-entrypoint-initdb.d. However, when I run <code>docker-compose up</code>, the sql file is not copied over to the container.</p>

<p>I've tried stopping the containers with <code>-vf</code> flag, but that didn't work either. Am I doing something wrong in my .yml script?</p>

<p>I have dump.sql in the directory database/db-dump/ in the root where my compose file is.</p>

<pre><code>frontend:
  image: myimage
  ports:
   - "80:80"
  links:
   - mysql
mysql:
  image: mysql
  ports:
   - "3306:3306"
  environment:
    MYSQL_ROOT_PASSWORD: rootpass
    MYSQL_USER: dbuser
    MYSQL_PASSWORD: userpass
    MYSQL_DATABASE: myimage_db
  volumes:
   - ./database/db-dump:/docker-entrypoint-initdb.d
</code></pre>