version: '3.8'
services:
  tremor:
    image: tremorproject/tremor:0.11
    ports:
      - 4316:4316
    environment:
      - RUST_BACKTRACE=1
      - RUST_LOG=info
    volumes:
      - ./etc/tremor:/etc/tremor:ro
      - ./var/log:/var/log:rw
    depends_on:
      - otel-collector

  # Zipkin
  zipkin-all-in-one:
   image: openzipkin/zipkin:latest
   ports:
     - "9412:9411"

  # Collector
  otel-collector:
    image: otel/opentelemetry-collector-dev:latest
    command: ["--config=/etc/otel-collector-config.yaml", ""]
    volumes:
      - ./etc/otel/collector.yaml:/etc/otel-collector-config.yaml
    ports:
      - "1888:1888"   # pprof extension
      - "13133:13133" # health_check extension
      - "4317"        # OTLP gRPC receiver
      - "9411:9411"   # Zipkin receiver
      - "55670:55679" # zpages extension
    depends_on:
      - zipkin-all-in-one
