So I am removing the volumes in the docker-compose and replacing them with local folders to preserve data. I also have an external MySql database. I ran into aparecntly a well known problem of permission denied for acs and ass directories. I did the "find user id and make that uesr the owner of the local directory" trick and it's working fine. My question is that even that it is working, those directories now look like they are owned by people who should not. And what's worse is that the "fake" user id that is mapped to a "real" local user, now has access to that directory.
Is there a way to change the docker user so that I could match it to a local user that I have controll over? How does one come over this abvious security hole in a production environment. In production you must have the content mapped to a local directory and database for persistance, backup, etc... so I can't be the first to wonder htis.