# Local development compose — builds the image from this repo's source tree # and runs the service alongside Redis and TimescaleDB containers. # # Use this for verifying Dockerfile changes locally before pushing. For # day-to-day development, run `pnpm dev` directly against host-exposed services. # # For STAGE and PRODUCTION deployment, use the multi-service compose in # the sibling `deploy/` repo (https://git.dev.microservices.al/trm/deploy), # which references this service by its registry image tag instead of # building locally. # # Usage: # docker compose -f compose.dev.yaml up --build # docker compose -f compose.dev.yaml down name: processor-dev services: redis: image: redis:7-alpine expose: - '6379' restart: unless-stopped timescaledb: image: timescale/timescaledb:latest-pg16 expose: - '5432' environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: trm restart: unless-stopped processor: build: . depends_on: [redis, timescaledb] ports: - '9090:9090' environment: NODE_ENV: production INSTANCE_ID: dev-1 REDIS_URL: redis://redis:6379 POSTGRES_URL: postgres://postgres:postgres@timescaledb:5432/trm LOG_LEVEL: debug METRICS_PORT: 9090 restart: unless-stopped