How make a wait import sql file?

I have 3 containers: nginx, php-fpm and mysql 5.7 . I import a large SQL file with volume. When I connect to the container mysql, see only part of the tables.

How to properly wait for SQL file import. Could give an example of use (healthcheck or .sh file)?

Source: StackOverflow

LEAVE A COMMENT