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

  • Cassandra fails to initialize with error “Cannot add table 'role_members' to non existing keyspace 'system_auth'”
  • Failed to config the https on the docker nginx container, always report time out
  • Docker hello world not working
  • How to make container wait for other container in Docker Compose
  • Building Docker image from Spring Boot Jar
  • Docker container link not setting environment variables
  • SonarQube with own Profile in Docker
  • Deploy NoneJS application with Docker
  • docker-compose stop not working after docker-compose -p <name> up
  • Modify Docker Image
  • Trying to connect to Ammonite sshd when app is running in docker container
  • Accessing Docker Node API from Digital Ocean
  • 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.