I am a bit confused about the way you manage containers. Actually, when containers are built and and run, they are mapped to default root user and as a result any associated volumes with the host machine are also mapped with the root user. But in your configurations, shared volume data/ keeps being associated with host user and not root docker user. I am curious about how it is possible.
To find the roots, I tried to dig further inside the code and found that for development you actually create a new user with appropriate USER_ID=1000,GROUP_ID=1000 and that actually resolves the issue, but I could not find this kind of configuration for production (local) deployment.
The data/ folder is indeed associated to the host user, but it is not a shared volume. All the folders inside data are shared volumes, and they are (most of the time) owned by root. For instance, on my machine I get:
Yes, thank you. To some strange point, I just looked at the data directory and thought all of the directories inside are also associated to the host user.