Skip to content

Instantly share code, notes, and snippets.

@tomchavakis
Last active April 19, 2020 08:39
Show Gist options
  • Save tomchavakis/6d0d6a7fa637be7a598e67d4a753d5de to your computer and use it in GitHub Desktop.
Save tomchavakis/6d0d6a7fa637be7a598e67d4a753d5de to your computer and use it in GitHub Desktop.
jaeger docker-compose with elasticsearch collector
version: "3"
services:
collector:
image: jaegertracing/jaeger-collector:1.8
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- ES_SERVER_URLS=http://localhost:9200
ports:
- "14269"
- "14268:14268"
- "14267"
- "14250"
- "9411:9411"
restart: on-failure
command: ["--es.server-urls=http://localhost:9200","--es.tags-as-fields.all=true", "--es.num-shards=1", "--span-storage.type=elasticsearch", "--log-level=error"]
agent:
image: jaegertracing/jaeger-agent:1.8
environment:
- SPAN_STORAGE_TYPE=elasticsearch
command: ["--collector.host-port=collector:14267"]
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
restart: on-failure
depends_on:
- collector
query:
image: jaegertracing/jaeger-query:1.8
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- ES_SERVER_URLS=http://localhost:9200
ports:
- "16686:16686"
- "16687"
restart: on-failure
command: ["--es.server-urls=http://localhost:9200", "--span-storage.type=elasticsearch", "--log-level=debug"]
depends_on:
- agent
@tomchavakis
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment