I'm receiving the following error when I try to start a docker-compose service with elastic-apm.jar configured.
LogDriver.StartLogging: error creating client config: A hosts flag is required
I've looked at this answer, but how can I fix this using docker-compose?
Why this error happens without any jar update?
elastic apm agent version: tested with 1.35.0 and 1.36.0
docker-compose version 1.24.1, build 4667896b, also tested in 1.25.0
Client: Docker Engine - Community
Version: 20.10.22