mirror of
https://github.com/grafana/tempo.git
synced 2025-03-14 03:06:42 +00:00
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
services:
|
|
|
|
# Tempo runs as user 10001, and docker compose creates the volume as root.
|
|
# As such, we need to chown the volume in order for Tempo to start correctly.
|
|
init:
|
|
image: &tempoImage grafana/tempo:latest
|
|
user: root
|
|
entrypoint:
|
|
- "chown"
|
|
- "10001:10001"
|
|
- "/var/tempo"
|
|
volumes:
|
|
- ./tempo-data:/var/tempo
|
|
|
|
tempo:
|
|
image: *tempoImage
|
|
command: [ "-config.file=/etc/tempo.yaml" ]
|
|
environment:
|
|
- GRPC_TRACE=api
|
|
volumes:
|
|
- ./tempo.yaml:/etc/tempo.yaml
|
|
- ./tempo-data:/var/tempo
|
|
ports:
|
|
- "14268:14268" # jaeger ingest
|
|
- "3200:3200" # tempo
|
|
- "9095:9095" # tempo grpc
|
|
- "4317:4317" # otlp grpc
|
|
- "4318:4318" # otlp http
|
|
- "9411:9411" # zipkin
|
|
depends_on:
|
|
- init
|
|
|
|
k6-tracing:
|
|
image: ghcr.io/grafana/xk6-client-tracing:v0.0.7
|
|
environment:
|
|
- ENDPOINT=tempo:4317
|
|
- TEMPO_X_SCOPE_ORGID=test
|
|
restart: always
|
|
depends_on:
|
|
- tempo
|
|
|
|
k6-tracing-2:
|
|
image: ghcr.io/grafana/xk6-client-tracing:v0.0.7
|
|
environment:
|
|
- ENDPOINT=tempo:4317
|
|
- TEMPO_X_SCOPE_ORGID=test2
|
|
restart: always
|
|
depends_on:
|
|
- tempo
|
|
|
|
grafana:
|
|
image: grafana/grafana:11.5.2
|
|
volumes:
|
|
- ./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
|
environment:
|
|
- GF_DEFAULT_APP_MODE=development
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
|
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
|
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor metricsSummary
|
|
ports:
|
|
- "3000:3000"
|