From d16218f8ebb679e4382a9d169482f08195b86015 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Fri, 30 Apr 2021 11:48:29 +0200 Subject: [PATCH] Add Jaeger/Elasticsearch. --- docker-compose.jaeger.yml | 85 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 docker-compose.jaeger.yml diff --git a/docker-compose.jaeger.yml b/docker-compose.jaeger.yml new file mode 100644 index 00000000..d5d87a88 --- /dev/null +++ b/docker-compose.jaeger.yml @@ -0,0 +1,85 @@ +version: '3' + +services: + sia: + environment: + - SIA_MODULES=gctwr + - JAEGER_DISABLED="${JAEGER_DISABLED:-false}" # Enable/Disable tracing + - JAEGER_SERVICE_NAME="${PORTAL_NAME:-Skyd}" # change to e.g. eu-ger-1 + # Configuration + # See https://github.com/jaegertracing/jaeger-client-go#environment-variables + # for all options. + - JAEGER_SAMPLER_TYPE=const + - JAEGER_SAMPLER_PARAM=1 + - JAEGER_AGENT_HOST=jaeger-agent + - JAEGER_AGENT_PORT=6831 + - JAEGER_REPORTER_LOG_SPANS=false + depends_on: + - jaeger-agent + + jaeger-agent: + image: jaegertracing/jaeger-agent + command: [ "--reporter.grpc.host-port=jaeger-collector:14250", "--reporter.grpc.retry.max=1000" ] + container_name: jaeger-agent + restart: on-failure + ports: + - "5775:5775/udp" + - "6831:6831/udp" + - "6832:6832/udp" + - "5778:5778" + environment: + - LOG_LEVEL=debug + networks: + shared: + ipv4_address: 10.10.10.92 + depends_on: + - jaeger-collector + + jaeger-collector: + image: jaegertracing/jaeger-collector + command: [ "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200", "--collector.zipkin.host-port=:9411" ] + container_name: jaeger-collector + restart: on-failure + ports: + - "14269" + - "14268:14268" + - "14250" + - "9411:9411" + environment: + - SPAN_STORAGE_TYPE=elasticsearch + - LOG_LEVEL=debug + networks: + shared: + ipv4_address: 10.10.10.90 + depends_on: + - elasticsearch + + jaeger-query: + image: jaegertracing/jaeger-query + command: [ "--es.num-shards=1", "--es.num-replicas=0", "--es.server-urls=http://elasticsearch:9200" ] + container_name: jaeger-query + restart: on-failure + ports: + - "16686:16686" + - "16687" + environment: + - SPAN_STORAGE_TYPE=elasticsearch + - LOG_LEVEL=debug + networks: + shared: + ipv4_address: 10.10.10.91 + depends_on: + - elasticsearch + + + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.15 + container_name: elasticsearch + restart: on-failure + environment: + - discovery.type=single-node + ports: + - "9200:9200/tcp" + networks: + shared: + ipv4_address: 10.10.10.93