but here is how to do it in an alternative way:
docker-compose exec -T php drush sql-cli < drupal.sql