I have two containers added to a task definition
Node Container:
name :nodeAPI port :exposed 5001 mongoconnection string in the env variable : mongodb://mongo [name of mongo container]Mongo container:
name :mongo port :exposed 27017
The node container is not able to connect to Mongo when I run this task. I am using Fargate and network as awsvpc.
- How do I fix this?
- How do I make it work running them from separate task definitions?
there's a security-group configuration when you running the task check whether those are open
fargate security groep
fargate acts like a ec2 onlything is you can use a docker image so you have to do normal ec2 configs