# 개발 모드용 Docker Compose 오버라이드
version: '3.8'

services:
  frontend:
    build:
      context: ./frontend
      dockerfile: Dockerfile.dev
      args:
        - VITE_API_URL=${VITE_API_URL:-http://localhost:18000}
    ports:
      - "${FRONTEND_PORT:-13000}:5173"
    volumes:
      - ./frontend/src:/app/src
      - ./frontend/public:/app/public
      - ./frontend/index.html:/app/index.html
      - ./frontend/vite.config.js:/app/vite.config.js
    environment:
      - VITE_API_URL=${VITE_API_URL:-http://localhost:18000}
    command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
