wordpress-docker-compose icon indicating copy to clipboard operation
wordpress-docker-compose copied to clipboard

Add custom entrypoint to solve file permission issue

Open nezhar opened this issue 5 years ago • 3 comments

Based on https://github.com/nezhar/wordpress-docker-compose/pull/34

nezhar avatar Sep 18 '19 20:09 nezhar

is it mean there is a fix for file upload permission error? Since I am suffering from it now, but again thanks for this great setup that makes the WordPress development process more easier

chungchi300 avatar Feb 10 '20 13:02 chungchi300

Hi @chungchi300

The entrypoint is one way, but it would add complexity to the repository, which I would like to avoid if possible.

There is another way that may be a bit better. Would you like to try adding the user attribute to you docker-compose.yml in the wp service?

services:
  wp:
    user: "${UID}:${GID}"
    image: wordpress:latest
    ...  

nezhar avatar Feb 10 '20 19:02 nezhar

@nezhar thanks for your rapid reply, I try it again with those modification but still has no luck.

chungchi300 avatar Feb 20 '20 13:02 chungchi300