services:
  app:
    build:
      context: .
      dockerfile: Dockerfile.dev
    image: getgreen-uz:dev
    container_name: getgreen-uz-dev
    restart: unless-stopped
    ports:
      - "${PORT:-3000}:3000"
    environment:
      NODE_ENV: development
      API_URL: ${API_URL:-https://api.quyoshli.uz/api}
      WATCHPACK_POLLING: "true"   # fayl o'zgarishlarini Docker ichida aniqlash uchun
    volumes:
      - .:/app
      - /app/node_modules          # host node_modules ni override qilmaslik uchun
      - /app/.next                 # build cache ni preserve qilish uchun
