Need help with default folder permissions. 502 error and php container keeps restarting

Hi,
I’m new to EasyEngine.
I wanted to change some source files for the WordPress website so I had temporarily changed the folder permissions to 777 for /var/lib/docker/volumes/sitecom_htdocs directory. After I reverted it back to 751, It seems like in this whole permission changing process I’ve ruined something in terms of ownership and files permission. I’ve been getting 502. I tried restarting all services but that doesn’t seem to help either.
docker ps shows that the PHP service container is constantly restarting. (screenshot attached)

Any idea on how to fix this?

Please let me know if more details are needed.

Thanks!