Relative Content

Tag Archive for phplaraveldocker

Problem with setting up MySQL for a Laravel project

I installed Docker Desktop and created a Laravel project using the following command:
composer create-project laravel/laravel test
I also ran this command:
docker compose up
My docker-compose.yml file contains:

Problem with setting up MySQL for a Laravel project

I installed Docker Desktop and created a Laravel project using the following command:
composer create-project laravel/laravel test
I also ran this command:
docker compose up
My docker-compose.yml file contains:

Laravel implementation with docker

I’m trying to set up containers, working with PHP/Laravel among other services, and I’m encountering issues with setting the permissions correctly so that every request made by my app, when creating new folders with files inside them in storage/app, sets permissions to 777 or similar. Otherwise, the GeoServer service from another container cannot access them. As you’ll see, the Laravel and GeoServer containers share a volume, and that’s where the files are located. I’ve tried adding some lines to the Dockerfile, but it hasn’t worked. Below is my code:

Getting incorrect errors on laravel docker container

I’ve recently been learning docker and trying to convert an existing web app into a container. However, I’ve been getting a consistent error for days which I still haven’t resolved. The project works totally fine on local and on AWS Elastic Beanstalk (via CodePipeline). It’s just on docker that it’s plagued with this error which does not even make sense.