Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labels to service definitions. #8

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions docker-compose.gander.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
#ddev-generated
version: "3"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per Randy this can be removed.

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
container_name: ddev-${DDEV_SITENAME}-otel-collector
command: [ "--config=/etc/otel-collector.yaml" ]
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
volumes:
- ./gander-config/otel-collector.yaml:/etc/otel-collector.yaml

# 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