version: '3.8'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile.dev
    env_file:
      - .env
    environment:
      - NODE_ENV=development
      - MIGRATION_SQL_HOST=host.docker.internal
      - MIGRATION_SQL_PORT=3306
      - MIGRATION_SQL_DATABASE=otti_migration_dev
      - MIGRATION_SQL_USER=root
      - MIGRATION_SQL_PASSWORD=password
    volumes:
      - .:/app
      - /app/node_modules
    command: npm run dev
    ports:
      - "${PORT:-3000}:${PORT:-3000}"
      - "9229:9229"  # Node.js debug port
    extra_hosts:
      - "host.docker.internal:host-gateway" 