moderntribe / square1-global-docker

SquareOne Global Docker is a command line application that provides a local development environment for projects based on the SquareOne Framework.
GNU General Public License v2.0
7 stars 1 forks source link

Attempt to set proper folder permissions #18

Closed defunctl closed 4 years ago

defunctl commented 4 years ago

https://devilbox.readthedocs.io/en/latest/readings/syncronize-container-permissions.html

Either making the owner in the container the same as the user (so PHP-FPM runs as that user), or also it's certainly possible to detect the host's http or www-data user and set that owner on the cache/uploads folders etc...

Luc45 commented 4 years ago

I couldn't find much of the logic for this feature in devilbox itself, but I could find it in the php image that it uses, which is also theirs: https://github.com/devilbox/docker-php-fpm/blob/master/Dockerfiles/work/data/docker-entrypoint.sh

defunctl commented 4 years ago

Fixed with https://github.com/moderntribe/squareone-docker-images/ and https://github.com/moderntribe/square1-global-docker/pull/30 sets the proper UID/GID.