

but you shouldn’t be building out new applications and new environments on VMs or LXC
That’s a bold statement, VMs might be just fine for some.
Use what ever is best for you, if thats containers great. If that’s a VM, sure. Just make sure you keep it secure.
with the way I do it, you can also use NFS as a backend
https://docs.docker.com/reference/compose-file/volumes/