|
| 1 | +services: |
| 2 | + elasticsearch: |
| 3 | + image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0@sha256:2f602552550869fb29b6fd5848c5118d3ef3a2e1d5d45802e3ab9088cb2de8e2 |
| 4 | + networks: |
| 5 | + - backend |
| 6 | + environment: |
| 7 | + - discovery.type=single-node |
| 8 | + - http.host=0.0.0.0 |
| 9 | + - transport.host=127.0.0.1 |
| 10 | + - xpack.security.enabled=false # Disable security features |
| 11 | + - xpack.security.http.ssl.enabled=false # Disable HTTPS |
| 12 | + - action.destructive_requires_name=false |
| 13 | + - xpack.monitoring.collection.enabled=false # Disable monitoring features |
| 14 | + - ES_LOG_LEVEL=trace # Set log level to capture all queries |
| 15 | + - logger.org.elasticsearch.index.search.slowlog=TRACE # Log all slow queries |
| 16 | + |
| 17 | + ports: |
| 18 | + - "9200:9200" |
| 19 | + healthcheck: |
| 20 | + test: [ "CMD-SHELL", "curl -f http://localhost:9200 || exit 1" ] |
| 21 | + interval: 10s |
| 22 | + timeout: 10s |
| 23 | + retries: 30 |
| 24 | + |
| 25 | + jaeger: |
| 26 | + networks: |
| 27 | + backend: |
| 28 | + # This is the host name used in Prometheus scrape configuration. |
| 29 | + aliases: [ spm_metrics_source ] |
| 30 | + image: jaegertracing/jaeger:${JAEGER_VERSION:-latest} |
| 31 | + volumes: |
| 32 | + - "./jaeger-ui.json:/etc/jaeger/jaeger-ui.json" # Do we need this for v2 ? Seems to be running without this. |
| 33 | + - "../../cmd/jaeger/config-spm-elasticsearch.yaml:/etc/jaeger/config.yml" |
| 34 | + command: ["--config", "/etc/jaeger/config.yml"] |
| 35 | + ports: |
| 36 | + - "16686:16686" # Jaeger UI http://localhost:16686 |
| 37 | + - "8888:8888" |
| 38 | + - "8889:8889" |
| 39 | + - "4317:4317" |
| 40 | + - "4318:4318" |
| 41 | + depends_on: |
| 42 | + elasticsearch: |
| 43 | + condition: service_healthy |
| 44 | + |
| 45 | + microsim: |
| 46 | + networks: |
| 47 | + - backend |
| 48 | + image: yurishkuro/microsim:v0.5.0@sha256:b7ee2dee51d2c9fd94de08a80278cfbf5a144ad0f22efce50f3d3be15cbfa2c7 |
| 49 | + command: "-d 24h -s 500ms" |
| 50 | + environment: |
| 51 | + - OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4318/v1/traces |
| 52 | + depends_on: |
| 53 | + - jaeger |
| 54 | + |
| 55 | + prometheus: |
| 56 | + networks: |
| 57 | + - backend |
| 58 | + image: prom/prometheus:v3.2.0@sha256:5888c188cf09e3f7eebc97369c3b2ce713e844cdbd88ccf36f5047c958aea120 |
| 59 | + volumes: |
| 60 | + - "./prometheus.yml:/etc/prometheus/prometheus.yml" |
| 61 | + ports: |
| 62 | + - "9090:9090" |
| 63 | + depends_on: |
| 64 | + - jaeger |
| 65 | + |
| 66 | +networks: |
| 67 | + backend: |
| 68 | + |
| 69 | +volumes: |
| 70 | + esdata: |
| 71 | + driver: local |
0 commit comments