So what is the right way to configure Docker such that both the container and my host user can alter files in the volume?
This is probably wrong and lazy. I think the rigorous approach is to use namespaces
https://www.jujens.eu/posts/en/2017/Jul/02/docker-userns-rem...
https://www.objectif-libre.com/en/blog/2020/06/30/securiser-...