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

MiloudiMohamed's avatar

Can't access docker app on the production server

So basically, I've used this GitHub template https://github.com/aschmelyun/docker-compose-laravel from Andrew Schmelyun

Then installed laravel in src/ folder and run the following commands docker-compose build && docker-compose up -d

Both docker and docker-compose are installed on my computer and the server

Without changing anything. Locally I could see the welcome page but when I try to access the application on the browser through the IP I get This site can’t be reached

Does anyone have an idea?

Thanks in advance

0 likes
4 replies
MohamedTammam's avatar

What do you get when your run docker ps on the server? do you get running images? do you see any images that has exited?

MiloudiMohamed's avatar

@MohamedTammam I get something like this

CONTAINER ID | IMAGE | COMMAND | CREATED | STATUS | PORTS | NAMES

a412 dc_app "/docker-entrypoint.…" 28 seconds ago Up 27 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp dc_app_1

This, and other lines for the other images, same as in local

Please or to participate in this conversation.