Create table & load data automatically

I am working with Docker and Spring Boot microservices. I have some data to insert in MySQL docker image. I want that whenever the docker-MySQL image is up & running, the table.sql will automatically create the table and load the data in this. Please help out how this could be done.