Auto conect kibana and elastic

How do I make the verification of kibana and elastic be done automatically when lifting the containers?

I'd recommend taking a look at the set up described for Docker Compose in the documentation for details on how to set up health checks for both Elasticsearch and Kibana.