Docker Compose: Mounted Laravel’s .env File Not Passing Environment Variables (Laravel, MySQL)
I’m trying to connect my Dockerized Laravel application to a MySQL database using Docker Compose. I’ve mounted the .env
file that contains the DB_DATABASE variable
, but I’m still encountering the error:
The stream or file “/var/www/html/storage/logs/laravel.log” could not be opened in append mode – Laravel / Docker
I’m trying to add laravel with docker.