I try to setup a little example on AWS Fargate and try to have one application container with one database container there.
The task definition starts both containers, b
You can probably set it up so the services can communicate over the public IP address with each other, then secure the ports using a VPC only the services can communicate with themselves on.