In order your services to be able to talk to each other, they need to belong to the same network. By default, a container/service is fully isolated, unless you connect it explicitly.
In you compose, they "depend" on each other, but are not connected in any way.
You need to create a network (from within the docker-compose itself, or as an external network : it depends wether it is devoted to this very stack or it is going to be shared with other stacks).
Once this network is added, each service will then have to connect to it
services:
serviceA:
....
networks:
- mynetwork
serviceB:
...
networks:
- mynetwork
depends_on:
- serviceA
networks:
networks:
mynetwork:
external: true
From now, each service can connect to the other through <service_name>:<inside_port> with inside port being the native port (not the one defined on the left part of - '9093:9093', though this would not be a pb since they are the same here)