Search code examples
amazon-web-servicesnginxnexusamazon-elbamazon-ecs

ECS with ALB, web and application Server


I have an Application Load Balancer setup with internet facing and ECS Container service setup with Auto Scaling Group with 2 private subnets in AWS. I would like to install Nexus with Nginx. What would be the best strategy so I can fully utilize all these services?


Solution

  • I assume that you want to deploy Nginx as a reverse proxy in front of Nexus. If so the following reference architecture from AWS should help:

    https://github.com/awslabs/ecs-nginx-reverse-proxy/tree/master/reverse-proxy

    It shows how to create a task definition that has two tasks linked to each other, such that a nginx reverse proxy container can sit in front of your application and send traffic to it.