Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

techyad's avatar

binam/laravel docker compose problem

Hello everyone, I am going to launch a Laravel application by docker-compose and i already used binami images but i have a trouble with accessing the application via browser.

Here is my docker compose content :

https://raw.githubusercontent.com/bitnami/containers/main/bitnami/laravel/docker-compose.yml

but when i try to access via localhost:8000 the browser remains in loading...

0 likes
4 replies
bobbybouwmann's avatar

I think you need to update the volume property to use the correct directory for your application.

How are you running this image? You need to run docker-compose up and then it should be running fine.

techyad's avatar

@bobbybouwmann

my project tree is

my-app 
	- docker-compose.yml
	- my-project

the my-prjoject folder contains the laravel folders and is created because of volume in the docker-compose file.

i simply run the docker-compose up and the both container are running and aslo in the laravel container theere is a log which says the server is running at 0.0.0.0:8000 but the host can not access it.

techyad's avatar

i just follow the binami/laravel docker image instructions.

bobbybouwmann's avatar

@techyad The docker-compose.yml needs to be in your project directory, so the root directory of your Laravel application.

Please or to participate in this conversation.