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 (
Please, can you elaborate on this?