Docker my own service container can't access url elastic search domain

Hi! I have one issue with my service indexer that calls url http://my-domain.us-east-1.es.localhost.localstack.cloud:4566 on another container localstack. Which the error is always ECONNREFUSED , i tried to change the hostname and always give me url not found. :

connect ECONNREFUSED 127.0.0.1:4566 {"meta":{"body":null,"headers":null,"meta":{"aborted":false,"attempts":10,"connection":{"_openRequests":0,"deadCount":11,"headers":{},"id":"http://my-domain.us-east-1.es.localhost.localstack.cloud:4566/","resurrectTimeout":1659708087975,"roles":{"data":true,"ingest":true,"master":true,"ml":false},"status":"dead","url":"http://my-domain.us-east-1.es.localhost.localstack.cloud:4566/"}

indexer:
build:
context: …/indexer
dockerfile: Dockerfile.development
restart: on-failure
volumes:
- .:/app
networks:
backend:
depends_on:
- localstack

localstack:
image: localstack/localstack:latest
container_name: localstack
command: sh -c “localstack start -d”
hostname: localstack
environment:
- SERVICES=sqs,es
- DEBUG=1
- DEFAULT_REGION=us-east-1
- DATA_DIR=/var/lib/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME_EXTERNAL=localstack
- LOCALSTACK_HOSTNAME=localstack
ports:
- “4566:4566”
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/tmp/localstack
networks:
backend: