Docker compse for mysql with existing db

Hello Team,

I nee a docker compose file that use existing DB while image build up and then load that db in my docker volume.

Please guide me …