Help! Moving docker instalation from one server to another

So how do I follow the instructions (e.g. frappe_docker/docs/list-of-containers.md at main · frappe/frappe_docker · GitHub and Best way to deploy new versions of custom app in self hosted docker setup ) to use it, if it doesn’t exist?

In which file do I “specify the mount”?
In the container build file (Dockerfile, in my version)?
In the docker-compose?
In both?

Sorry to be so ignorant about how docker works. I have read pages and pages of documentation, but seem to have learned nothing - I have no model in my mind of how it works, so most of it is just magic to me!