Linux chmod command not working in docker-compose file

I am trying to dockerise my PHP application with Nginx and PHP7-FPM. Initially, I was getting a file not found error. But I found out that we need to give permission to folder of PHP files that is /var/www/html. I tried to run the command through docker-compose file as -

 command:
- 'chmod -R 755 /var/www/html'

But I am getting error - /docker-entrypoint.sh: 38: exec: -chmod: not found

Also posted on php - Linux chmod command not working in docker-compose file - Stack Overflow.