Apm-server config in docker compose with ES and Kibana

apm-server test output from within the container will need the same configuration you're passing into apm-server via the command. Two options for you:

  1. Move the configuration to apm-server.yml and bind mount it into the docker container as directed in Run APM Server on Docker | APM Server Reference [7.15] | Elastic

  2. Run the output test with same params: apm-server test output -E output.elasticsearch.hosts=["172.29.143.107:9200"] -E output.elasticsearch.username=elastic -E output.elasticsearch.password=elastic

I would also recommend updating to the latest release, version 8.1.2 as of today.