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?