Docker-compose with network_mode: "service:[service name]"

Thank you, @anatom! That did the trick.