Hello everyone,
I'm encountering a very strange problem at the moment with APM server. I'm trying to integrate it into our docker-compose setup, version of all components is 7.9.0. When the containers start up, I get this error:
Attempting to reconnect to backoff(elasticsearch(http://elasticsearch:9200))
and
504 Gateway Timeout
The config is pretty much default, some others have this issue with 401 due to missing credentials, that's not the problem in my case.
I also tried pinging elasticsearch from within the apmserver container, works as expected, so it shouldn't be related to the docker networking. Kibana in the same setup works fine with elasticsearch. Any ideas, what might cause this or what I can try to get it working? I've been reading the documentation for an hour now and can't find any errors in the configuration.
My docker-compose.yml:
elasticsearch:
image: ${DOCKER_REGISTRY-}elasticsearch:7.9.0
volumes:
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ../config/elasticsearch/data/:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
apmserver:
image: docker.elastic.co/apm/apm-server:7.9.0
volumes:
- ../config/apmserver/apm-server.yml:/usr/share/apm-server/apm-server.yml
ports:
- "8200:8200"