How to link docker native container launch with docker-compose and container launch with rancher stack

Hello there.
I’m pretty new with Rancher.

My docker-compose has 5 containers. All of these container have :
network_mode: bridge
labels:
- “io.rancher.container.network=true”

They joined so the managed network of Rancher and have an “rancher” ip.

I want now link one of my container (A) from docker-compose file to one container (B) of an other stack(Sentry stack) created in rancher.
My (A) container can ping the rancher ip of (B) in sentry stack but cannot ping the container alias of the Sentry stack.
I try ping <service_name>. and it’s not working.

Can you help me please ?