webdevops / php-docker-boilerplate

:stew: PHP Docker Boilerplate for Symfony, Wordpress, Joomla or any other PHP Project (NGINX, Apache HTTPd, PHP-FPM, MySQL, Solr, Elasticsearch, Redis, FTP)
https://webdevops.io/projects/php-docker-boilerplate/
MIT License
561 stars 185 forks source link

Permission when deploying to Ubuntu #64

Open vinhtq opened 7 years ago

vinhtq commented 7 years ago

On the server when I deploy the app, the website always ask for writable permission on some specific folder: tmp, cache, logs of folder app

Do I need to run chmod or chown command to gain access to the docker

I am running webdevops:php-nginx-16.04

mblaschke commented 7 years ago

Per default the container is using UID 1000/GID 1000 for accessing files inside the container or host mounted volumes.

lukrop commented 6 years ago

How can we change the default UID/GID?

Stewy82 commented 6 years ago

Add the following configuration to your environment.yml and change the ids ;)

EFFECTIVE_UID=1234 EFFECTIVE_GID=1234