My first fargate (bad) expérience

0

Hello I created a fargate cluster to deploy a django container with this dockerfile :

FROM python:3.10.12-alpine ENV PYTHONBUFFERED 1 ENV ALLOWEDHOST '*'

WORKDIR /roai_pre_registration_portal COPY requirements.txt . RUN pip install -r requirements.txt COPY . . CMD python manage.py runserver 0.0.0.0:8000

When I created my container, I can use it with the command : docker run -p 8000:8000 roai_pre_registration_portal I pushed it to my ECR and created the task definition with the network mapping 8000. The Service is running.

I see the public IP and the port Enter image description here

When I click on open address I obtain : Enter image description here

I don't understand why the web page is not displayed. I don't find http logs. I don't find container logs to see if my request reach the container.

I need help plz.

Best regards

LJO377
asked 9 months ago231 views
1 Answer
1

Hello.
What are the settings of the security groups configured in the ECS?
Is port 8000 allowed in the inbound rules?

Container logs can be output to CloudWatch Logs.
It would be a good idea to check the logs to see if they are accessible from there.
https://repost.aws/knowledge-center/ecs-container-logs-cloudwatch

profile picture
EXPERT
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions