How about add `RUN usermod -u 1000 www-data` for php containers? :) Because now container set root permission for files which create.