I am trying to setup Grav CMS onto my own infrastructure by making a Docker image of it, and without any volumes it works fine. Now that I'm trying to mount directories for persistent data, the directories are chown'd by root.
Is there something I'm not understanding about what is happening?
Does this have to do with my Dockerfile running under root when I declare the volume? Also, do I even need to declare a volume? It seems like other authors have removed the declarations.