Logstash docker image doesn't connect to elasticsearch image

It works perfectly well now!
Thank you very much for your help!