As a layperson I can’t comment on whether this is a good practice or not, but this is what I do since most of the containers I use are media related, so they all need access to the same directory of media.
I set my system up using DockSTARTer, which is a convenience wrapper for setting up a Docker compose config, and it shares a common storage
mount amongst all the containers. It sets a variable in .env
that all the container configs use.