|
| 1 | +services: |
| 2 | + opentelemetry-collector: |
| 3 | + image: otel/opentelemetry-collector-contrib:0.107.0 |
| 4 | + command: ["--config=/etc/opentelemetry-collector.yaml"] |
| 5 | + volumes: |
| 6 | + - ./configuration/opentelemetry-collector.yaml:/etc/opentelemetry-collector.yaml |
| 7 | + ports: |
| 8 | + # NOTE: when `faster-whisper-server` is also running as a Docker Compose service, this doesn't need to be exposed. |
| 9 | + - 4317:4317 # OTLP gRPC receiver |
| 10 | + # - 4318:4318 # OTLP HTTP receiver |
| 11 | + # - 8888:8888 # Prometheus metrics exposed by the Collector |
| 12 | + # - 8889:8889 # Prometheus exporter metrics |
| 13 | + # - 13133:13133 # health_check extension |
| 14 | + # NOTE: `healthcheck` can't be set up, as the container doesn't have a shell to run the healthcheck command. |
| 15 | + loki: |
| 16 | + image: grafana/loki:3.0.0 |
| 17 | + command: ["-config.file=/etc/loki.yaml"] |
| 18 | + volumes: |
| 19 | + - ./configuration/loki.yaml:/etc/loki.yaml |
| 20 | + - loki-data:/loki |
| 21 | + ports: |
| 22 | + - "3100:3100" |
| 23 | + healthcheck: |
| 24 | + # NOTE: doesn't have a proper healthcheck endpoint |
| 25 | + test: wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1 |
| 26 | + interval: 5s |
| 27 | + timeout: 5s |
| 28 | + retries: 3 |
| 29 | + prometheus: |
| 30 | + image: prom/prometheus:v2.55.0 |
| 31 | + command: ["--config.file=/etc/prometheus.yaml"] |
| 32 | + volumes: |
| 33 | + - ./configuration/prometheus.yaml:/etc/prometheus.yaml |
| 34 | + - prometheus-data:/prometheus |
| 35 | + healthcheck: |
| 36 | + test: wget --no-verbose --tries=1 --spider http://localhost:9090/-/healthy || exit 1 |
| 37 | + interval: 5s |
| 38 | + timeout: 5s |
| 39 | + retries: 3 |
| 40 | + tempo: |
| 41 | + image: grafana/tempo:2.5.0 |
| 42 | + command: ["-config.file=/etc/tempo.yaml"] |
| 43 | + volumes: |
| 44 | + - ./configuration/tempo.yaml:/etc/tempo.yaml |
| 45 | + - tempo-data:/tmp |
| 46 | + # https://github.com/grafana/tempo/issues/1657#issuecomment-2049987178 |
| 47 | + # - tempo-data:/tmp/tempo |
| 48 | + healthcheck: |
| 49 | + test: wget --no-verbose --tries=1 --spider http://localhost:3200/status || exit 1 |
| 50 | + interval: 5s |
| 51 | + timeout: 5s |
| 52 | + retries: 3 |
| 53 | + grafana: |
| 54 | + image: grafana/grafana:11.3.0 |
| 55 | + volumes: |
| 56 | + - ./configuration/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml |
| 57 | + - grafana-data:/var/lib/grafana |
| 58 | + environment: |
| 59 | + - GF_AUTH_ANONYMOUS_ENABLED=true |
| 60 | + - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin |
| 61 | + - GF_AUTH_DISABLE_LOGIN_FORM=true |
| 62 | + ports: |
| 63 | + - "3000:3000" |
| 64 | + healthcheck: |
| 65 | + test: wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1 |
| 66 | + interval: 5s |
| 67 | + timeout: 5s |
| 68 | + retries: 3 |
| 69 | +volumes: |
| 70 | + loki-data: |
| 71 | + prometheus-data: |
| 72 | + tempo-data: |
| 73 | + grafana-data: |
0 commit comments