ECS Fargate - Error Deploy Dockerized Laravel APP Nginx

0

Someone help to understand maybe what is my error, o maybe some tutorial transform docker-compose.yml (laravel, nginx) Thanks Thanks. The network configurition VPC, Subnets, etc are well, because other ECS cluster simples is working perfect.

I have try to create a Task Definition from the this docker-compose.yml

Enter image description here

I have only one dockerfile

Enter image description here

I have all Docker images that I plan to use are stored in a repository accessible to ECS, in Amazon ECR. Note: I create the lavarel-image using the comand "docker compose build app".

Enter image description here

Enter image description here

This is my TaskDefinition in ECS

Enter image description here

Enter image description here

Enter image description here

Enter image description here

Enter image description here

I have a created the Services, it is running.

Enter image description here

The service has only un desire task

Enter image description here

When I tried to open the public ip of the Task, no show me anything. In local enviroment, it working well.

Enter image description here

This Is the log group, not sure if is a error.

Enter image description here

1 Respuesta
0

Hello.

Are the ECS tasks themselves starting without errors?
Also, what are the security group settings used in ECS?
Is your public IP address allowed in your security group's inbound rules?
Also, the contents of volumes set in docker-compose.yml probably cannot be used unless they are copied into the container, so it may be necessary to copy them into the container using something like dockerfile.

profile picture
EXPERTO
respondido hace un mes
    1. The ECS tasks themselves starting without errors, but I am not sure... Look the question update, I put new image.. I have que question with the evidence below. look the question I have update.

    2. Yes the public address is allowed. Inboud rules -> Type "All traffic", Protocol "All", Port RAnge "All", source "0.0.0.0/0"

  • The ECS tasks themselves starting without errors, but I am not sure... Look the question update, I put new image.. I have que question with the evidence below. look the question I have update.

  • Looking at the log image, it appears that PHP-FPM has stopped working. I think that access is failing because PHP-FPM stops immediately after the task starts. By the way, I will share the following URL for Dockerfile reference. https://github.com/yuji-hirai/laravel-ecs/blob/main/docker/php/Dockerfile

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas