Skip to content

Instantly share code, notes, and snippets.

@narze
Created June 4, 2025 08:37
Show Gist options
  • Save narze/f3f61b7fd4049f0d6a85eff69acab9d9 to your computer and use it in GitHub Desktop.
Save narze/f3f61b7fd4049f0d6a85eff69acab9d9 to your computer and use it in GitHub Desktop.
Minimum local Elastic Stack with APM
# 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