I'm not sure localhost is resolved correctly. Would you mind testing if using container_name as recommended in Install Elasticsearch with Docker | Elasticsearch Guide [8.11] | Elastic addresses the problem?
1 Like