# Docker Compose for Integration Testing (Sprint 34)
#
# Starts Jaeger All-in-One for testing OTLP export,
# compute tracing, and distributed tracing features.

version: '3.8'

services:
  jaeger:
    image: jaegertracing/all-in-one:1.52
    container_name: renacer-test-jaeger
    environment:
      - COLLECTOR_OTLP_ENABLED=true
      - LOG_LEVEL=info
    ports:
      - "16686:16686"  # Jaeger UI
      - "4317:4317"    # OTLP gRPC
      - "4318:4318"    # OTLP HTTP
      - "14268:14268"  # Jaeger Collector HTTP
      - "14250:14250"  # Jaeger Collector gRPC
    healthcheck:
      test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:16686"]
      interval: 5s
      timeout: 3s
      retries: 10
      start_period: 10s
    networks:
      - renacer-test

networks:
  renacer-test:
    driver: bridge
