A
A
aarifkhamdi2020-03-30 16:01:22
Nginx
aarifkhamdi, 2020-03-30 16:01:22

Do I need nginx with containers?

I want to migrate an application from ec2 to ECS. For the most part, just try / poke

Interested in the following question: how is this supposed to work?
On ec2, I installed nginx, followed by several applications. How should this work with ECS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-03-30
@inoise

Just like in ordinary life. In general, AWS has an Application Load Balancer for this.

M
mrsaa, 2020-04-06
@mrsaa

it all depends on your application, several options are possible:

  1. if your application can distribute and cache statics, process routes on its own, then you can do without nginx
  2. if your application is monolithic and the frontend version is strictly dependent on the backend version, then it is advisable to deploy the service with two containers: nginx and backend. And the nginx port is already mapped into the balancer
  3. if the application is not monolithic, then you can split the front and back into different services and endpoints, then it will be convenient to scale the load.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question