convert tempo to stack

This commit is contained in:
2024-08-11 06:15:47 -07:00
parent b13b470157
commit fd97d27bd6
2 changed files with 28 additions and 8 deletions

23
tempo.compose.yaml Normal file
View File

@ -0,0 +1,23 @@
# https://github.com/grafana/tempo/blob/main/example/docker-compose/shared/tempo.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: [ "-server.http-listen-port=3200 --storage.trace.backend=local --storage.trace.local.path=/var/tempo/blocks --storage.trace.wal.path=/var/tempo/wal" ]
volumes:
- tempo-data:/var/tempo
network_mode: host # so all the other containers can send to it easily
depends_on:
- init