Is there a way to start Dgraph with an initial schema?

I’m running the dgraph/standalone image in docker and I want to know if there is a way to start Dgraph with an initial schema rather than hitting the admin/schema endpoint.

I have not been able to find anything regarding this problem in the documentation.

Only adding a bash script inside the image. There’s no other way.

What is the use-case?

Would it not be possible with a Docker volume? Use volumes | Docker Documentation