You can connect multiple docker compose apps by setting the network. If the apps share a network, they can communicate.
Connect docker compose apps - Dean Blackborough.com