version: '3.8'

services:
  api:
    volumes:
      - ./apps/api:/app
      - /app/node_modules
    environment:
      - NODE_ENV=development
      - DEBUG=redirect:*
    command: npm run dev

  web:
    volumes:
      - ./apps/web:/app
      - /app/node_modules
    environment:
      - NODE_ENV=development
      - CHOKIDAR_USEPOLLING=true
    command: npm run dev

  worker:
    volumes:
      - ./apps/worker:/app
      - /app/node_modules
    environment:
      - NODE_ENV=development
      - DEBUG=worker:*
    command: npm run dev
