K
K
knowledge2019-01-23 11:02:18
Docker
knowledge, 2019-01-23 11:02:18

How to set permissions when working with laravel on docker?

I install laravel, add files there to raise docker
docker is connected images via docker-compose nginx, php-fpm, mariadb.
In php-fpm, I install composer
, set the rights to the storage folder for www-data: www-data, the rest of the files have permissions of 1000:1000 and everything works fine.
Then I save the state via git and send it to the remote repository.
great, now I download it all to another folder for testing, I run docker-compose up
I go into the container, I execute composer install and ... the page returns 500

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
knowledge, 2019-01-23
@knowledge

I figured out what's the matter, git does not save the .env file
after cloning the repository, you need to rename .env.example to .env inside the container and execute php artisan key: generate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question