Test if Docker Compose depends_on is working

Hello,

Is there a way test if depends_on is working for Docker-compose? I have two containers and I want to know when one is ready before starting the other. Is there any other method to do this?

Thank you

I will be also waiting for the answer.