You can not run two containers in a task that listen to the same port!
Fargate will ensure that you then can access this container on the same port on the ENI.
https://cloudonaut.io/fargate-networking-101/