system-config/playbooks/roles/jaeger/templates/docker-compose.yaml.j2
James E. Blair bb0dd71c59 Fix jaeger badger config and uid
Apparently "30d" as a ttl value breaks badger, but "720h" is okay.

Also, run the process as the jaeger user.

Change-Id: I00ad6b529aa86b0051343f828e05df8212b34656
2022-09-28 14:22:58 -07:00

25 lines
792 B
Django/Jinja

# 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 }}"