services: postgres: image: postgres:16 container_name: langfuse-postgres restart: unless-stopped environment: POSTGRES_DB: langfuse POSTGRES_USER: langfuse POSTGRES_PASSWORD: langfuse_password volumes: - /var/lib/docker/volumes/stack-lgtm/langfuse/postgres_data:/var/lib/postgresql/data networks: - lgmtnet redis: image: redis:7 container_name: langfuse-redis restart: unless-stopped networks: - lgmtnet langfuse: image: langfuse/langfuse:2 container_name: langfuse restart: unless-stopped depends_on: - postgres - redis ports: - "3010:3000" environment: DATABASE_URL: postgresql://langfuse:langfuse_password@postgres:5432/langfuse REDIS_CONNECTION_STRING: redis://redis:6379 TELEMETRY_ENABLED: "false" networks: - lgmtnet litellm: image: ghcr.io/berriai/litellm:main-latest container_name: litellm restart: unless-stopped command: - "--config" - "/app/config.yaml" ports: - "4000:4000" environment: LANGFUSE_HOST: http://langfuse:3000 OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318 OTEL_SERVICE_NAME: litellm volumes: - ./litellm/config.yaml:/app/config.yaml depends_on: - langfuse - otel-collector networks: - lgmtnet tempo: image: grafana/tempo:latest container_name: tempo command: - "-config.file=/etc/tempo.yaml" volumes: - ./tempo/tempo.yaml:/etc/tempo.yaml ports: - "3200:3200" networks: - lgmtnet otel-collector: image: otel/opentelemetry-collector-contrib:latest container_name: otel-collector command: - "--config=/etc/otel/config.yaml" volumes: - ./otel/config.yaml:/etc/otel/config.yaml ports: - "4317:4317" - "4318:4318" networks: - lgmtnet networks: lgmtnet: driver: bridge