Created
June 4, 2025 08:37
-
-
Save narze/f3f61b7fd4049f0d6a85eff69acab9d9 to your computer and use it in GitHub Desktop.
Minimum local Elastic Stack with APM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: Start docker compose, then point Elastic APM to http://localhost:8200 | |
# Access Kibana at http://localhost:5601 | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION:-9.0.2} | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
- discovery.type=single-node | |
- xpack.security.enabled=false | |
kibana: | |
image: docker.elastic.co/kibana/kibana:${ES_VERSION:-9.0.2} | |
ports: | |
- 5601:5601 | |
depends_on: | |
- elasticsearch | |
apm-server: | |
image: docker.elastic.co/apm/apm-server:${ES_VERSION:-9.0.2} | |
ports: | |
- 8200:8200 | |
environment: | |
- apm-server.host=apm-server:8200 | |
- apm-server.frontend.enabled=true | |
- apm-server.frontend.allow_origins="*" | |
- output.elasticsearch.enabled=true | |
- output.elasticsearch.hosts=["elasticsearch"] | |
- setup.kibana.host="kibana" | |
depends_on: | |
- elasticsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment