Skip to content

Commit

Permalink
Correctly init permission for the tempo volume.
Browse files Browse the repository at this point in the history
  • Loading branch information
slashrsm committed Jul 22, 2024
1 parent fb1f6c1 commit 0865112
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docker-compose.gander.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
#ddev-generated
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

# And put them in an OTEL collector pipeline...
otel-collector:
image: otel/opentelemetry-collector:0.61.0
Expand All @@ -14,15 +26,15 @@ services:

# To eventually offload to Tempo...
tempo:
image: grafana/tempo:latest
image: *tempoImage
container_name: ddev-${DDEV_SITENAME}-tempo
command: [ "-config.file=/etc/tempo.yaml" ]
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
volumes:
- ./gander-config/tempo.yaml:/etc/tempo.yaml
- tempo-data:/tmp/tempo
- tempo-data:/var/tempo

prometheus:
image: prom/prometheus:latest
Expand Down

0 comments on commit 0865112

Please sign in to comment.