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 个月前385 查看次数
1 回答
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
专家
已回答 1 个月前
    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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则