Skip to content

Instantly share code, notes, and snippets.

@medzhidov
Last active April 7, 2023 21:06
Show Gist options
  • Save medzhidov/668c1250ccb8b5f5f1d53e98da420465 to your computer and use it in GitHub Desktop.
Save medzhidov/668c1250ccb8b5f5f1d53e98da420465 to your computer and use it in GitHub Desktop.
Docker compose preset for latest (1.35) Jaeger + Elasticsearch (Query, Collector, without Agent)
# This will starts only core of Jaeger, also you need to start an agent (on the same or another server):
# https://gist.github.com/medzhidov/4b5d214ddad08804d7810a4aad79520e
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
networks:
- elastic-jaeger
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"
restart: on-failure
environment:
- cluster.name=jaeger-cluster
- discovery.type=single-node
- http.host=0.0.0.0
- transport.host=127.0.0.1
- ES_JAVA_OPTS=-Xms4g -Xmx12g
- xpack.security.enabled=false
volumes:
- esdata:/usr/share/elasticsearch/data
jaeger-collector:
image: jaegertracing/jaeger-collector
ports:
- "14268:14268"
- "14269:14269"
- "14250:14250"
networks:
- elastic-jaeger
restart: on-failure
environment:
- SPAN_STORAGE_TYPE=elasticsearch
command: [
"--es.server-urls=http://elasticsearch:9200",
"--es.num-shards=1",
"--es.num-replicas=0",
"--es.version=7",
# "--log-level=error"
]
depends_on:
- elasticsearch
jaeger-query:
image: jaegertracing/jaeger-query
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- no_proxy=localhost
ports:
- "16685:16685"
- "16686:16686"
- "16687:16687"
networks:
- elastic-jaeger
restart: on-failure
command: [
"--es.server-urls=http://elasticsearch:9200",
"--span-storage.type=elasticsearch",
"--log-level=debug"
]
depends_on:
- elasticsearch
volumes:
esdata:
driver: local
networks:
elastic-jaeger:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment