I am trying to set up a small example in AWG Fargate and try to create one application container with one database container.
The task definition starts both containers, but my application container does not work with getaddrinfo ENOTFOUND db db:3306
. Thus, the database container cannot be found by my application container.
Since Fargate does not allow the "linking" of Docker containers, I would like to know how they can communicate with each other. The database container has a name db
with a port 3306
, and my application container is configured to use it.
Unfortunately, container reference definitions are not available for Fargate, but only for "oldschool" ECS / EC2.
In the local docker configuration, it works this way.
source
share