Unable to run, Web API x Elasticsearch Error: Host 'localhost:9200' not reachable on docker compose up

After docker compose up -d, first error on log is

webapi_1 | reactor.core.Exceptions$ErrorCallbackNotImplemented: org.springframework.data.elasticsearch.client.NoReachableHostException: Host ‘localhost:9200’ not reachable. Cluster state is offline.

I checked and can telnet from “webapi” to “search” host, seems like localhost is not adequate configuration on webapi. Can’t find where to change webapi elasticsearch host.

On webapi application.properties I only see:

Thank you!