Bind mount vs named volume?
BeginnerConceptDocker
Answer
A bind mount maps a host path into the container, which suits development. A named volume is managed by Docker under /var/lib/docker/volumes, portable, and the right choice for persistent data.