Docker-compose and named volume permission denied suggests that, if you RUN mkdir /xxx && chown "$APP_UID" /xxx the directory in the Dockerfile, then when Docker creates the named volume, it will inherit the mount point's permissions. Does that setup work for you here too?