services:
  postgres:
    ports:
      - "5433:5432"

  redis:
    ports:
      - "6379:6379"

  crm-app:
    build:
      context: .
      dockerfile: Dockerfile.dev
    ports:
      - "3000:3000"
    volumes:
      - .:/app
      - /app/node_modules
    command: pnpm dev

  crm-worker:
    profiles: ["worker"] # Optional in dev — server.ts runs workers inline

  nginx:
    profiles: ["nginx"] # Skip nginx in dev
