Docker file permission php on Mac OS with docker-compose && dockerfile

I need a help about file permissions on my docker project.
I’m using docker-compose + dockerfile and I’m having a problem that my php cant write files in my projects, so I cant develope. Here is my project

  • Force Docker Swarm container distribution
  • Google Cloud Load Balancer enforce HTTP, not HTTPS, using Kubernetes Ingress
  • Docker Base Images and Scaling Architecture
  • Splash installation through Docker in OS X: read-only file system
  • Could i run docker in a docker Container Ubuntu 14.04
  • Transforming Web.Config in a Windows Docker container
  • Docker hub image cache doesn't seem to be working
  • Crossbar 0.12.1 : No module named django - wsgi error
  • OrientDB Studio is not starting in Docker Container on Windows Server 2016
  • Windows base image for docker
  • root password inside a docker container
  • How to define docker image name from within docker-compose.yml?
  • One Solution collect form web for “Docker file permission php on Mac OS with docker-compose && dockerfile”

    chown -R www-data:www-data /var/www/html
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.