Files
budget/docker-compose.yml
T
Spencer Twaddle 8d4d7c7ce3 Fix OTel wiring to match working Auth implementation
Three corrections vs Auth project:
- Replace AddOtlpExporter() (traces only) with UseOtlpExporter() so both
  traces and logs are exported via OTLP
- Remove redundant .WithLogging() call; builder.Logging.AddOpenTelemetry()
  is sufficient on its own
- Pass OTEL_EXPORTER_OTLP_ENDPOINT/PROTOCOL through from host env vars
  instead of hardcoding the collector URL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 17:34:45 -05:00

47 lines
1.3 KiB
YAML

services:
budget:
image: ${IMAGE_REGISTRY:-}budget:latest
environment:
- VIRTUAL_HOST=${BUDGET_VIRTUAL_HOST:-budget.stwaddle.com}
- LETSENCRYPT_HOST=${BUDGET_LETSENCRYPT_HOST:-budget.stwaddle.com}
- VIRTUAL_PORT=8080
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Production}
- ConnectionStrings__DefaultConnection=Host=apps-db;Port=5432;Database=${POSTGRES_DB:-budget};Username=${POSTGRES_USER:-budget};Password=${POSTGRES_PASSWORD}
- OTEL_EXPORTER_OTLP_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT}
- OTEL_EXPORTER_OTLP_PROTOCOL=${OTEL_EXPORTER_OTLP_PROTOCOL}
- OTEL_SERVICE_NAME=budget
depends_on:
- apps-db
- auth
networks:
- web
- apps-internal
- auth-public
- telemetry
restart: unless-stopped
apps-db:
image: postgres:16-alpine
environment:
- POSTGRES_DB=${POSTGRES_DB:-budget}
- POSTGRES_USER=${POSTGRES_USER:-budget}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- apps-db-data:/var/lib/postgresql/data
networks:
- apps-internal
restart: unless-stopped
networks:
web:
external: true
apps-internal:
external: true
auth-public:
external: true
telemetry:
external: true
volumes:
apps-db-data: