From 01619fc36121b851c321ca059477a14d282aee18 Mon Sep 17 00:00:00 2001 From: Conor H Date: Mon, 9 Sep 2024 01:53:30 +0100 Subject: [PATCH] Update port refs --- .aws/task-definition.json | 13 +++---------- Dockerfile | 2 +- docker-compose.yml | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.aws/task-definition.json b/.aws/task-definition.json index 33b5077..42ec3de 100644 --- a/.aws/task-definition.json +++ b/.aws/task-definition.json @@ -4,19 +4,12 @@ { "name": "ironoc", "image": "345594590074.dkr.ecr.eu-north-1.amazonaws.com/conorheffron/ironoc:latest", - "memory": "256", + "memory": "512", "portMappings": [ { "name": "ironoc-80-tcp", - "containerPort": 80, - "hostPort": 80, - "protocol": "tcp", - "appProtocol": "http" - }, - { - "name": "ironoc-8080-tcp", "containerPort": 8080, - "hostPort": 8080, + "hostPort": 80, "protocol": "tcp", "appProtocol": "http" } @@ -42,7 +35,7 @@ "family": "ironoc", "taskRoleArn": "arn:aws:iam::345594590074:role/ecsTaskExecutionRole", "executionRoleArn": "arn:aws:iam::345594590074:role/ecsTaskExecutionRole", - "networkMode": "awsvpc", + "networkMode": "bridge", "volumes": [], "status": "ACTIVE", "requiresAttributes": [ diff --git a/Dockerfile b/Dockerfile index a16c66b..7ec57d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,6 @@ ENV RUN_FILE /run.sh COPY run.sh ${RUN_FILE} RUN chmod +x ${RUN_FILE} -EXPOSE 80 +EXPOSE 8080 ENTRYPOINT [ "sh", "-c", "${RUN_FILE}" ] diff --git a/docker-compose.yml b/docker-compose.yml index cfb3a8b..47620d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,4 +2,4 @@ services: portfolio: image: ironoc ports: - - "80:80" \ No newline at end of file + - "8080:8080" \ No newline at end of file