Error sending data to APM server

Hi Guys ,
im using APM server 6.6
Kibana 6.6
Elastic 6.6

And elastic java apm agent: elastic-apm-agent-1.6.1.jar

I Added the following parameters to my entrypoint when i run java application in docker:

java -javaagent:/elastic-apm/elastic-apm-agent-1.6.1.jar -Delastic.apm.service_name=alerts_eureka-server -Delastic.apm.server_url=http://apm-sever:8200 -jar /eureka-server.jar

but when i look into the docker logs i got the following message:
2019-05-29 08:33:59.131 [apm-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error sending data to APM server: Read timed out, response code is -1

Just to mention that the application run in java container

when i ran curl -I http://apm-sever:8200
it is stuck with out respond .

in my apm-sever i configured

apm-server:

Defines the host and port the server is listening on. use "unix:/path/to.sock" to listen on a unix domain socket.

host: "0.0.0.0:8200"

do you see any reason?

Fixed ,
thanks guys