# Version 2 is the latest that is supported by docker-compose in # Ubuntu Xenial. version: '2' services: jaeger: image: docker.io/jaegertracing/all-in-one:latest network_mode: host restart: always environment: - SPAN_STORAGE_TYPE=badger - BADGER_EPHEMERAL=false - BADGER_DIRECTORY_VALUE=/badger/data - BADGER_DIRECTORY_KEY=/badger/key - BADGER_SPAN_STORE_TTL=720h - COLLECTOR_OTLP_ENABLED=true - COLLECTOR_OTLP_GRPC_TLS_ENABLED=true - COLLECTOR_OTLP_GRPC_TLS_CERT=/tls/certs/cert.pem - COLLECTOR_OTLP_GRPC_TLS_KEY=/tls/keys/key.pem - COLLECTOR_OTLP_GRPC_TLS_CLIENT_CA=/tls/certs/cacert.pem volumes: - /var/jaeger/badger:/badger - /var/jaeger/tls:/tls user: "{{ jaeger_uid }}:{{ jaeger_gid }}"