services:
  # Next.js 프론트엔드만
  frontend:
    build:
      context: ../../frontend
      dockerfile: ../docker/dev/frontend.Dockerfile
    container_name: pms-frontend-mac-v2
    ports:
      - "9772:3000"
    environment:
      - NEXT_PUBLIC_API_URL=http://localhost:8082/api
      - SERVER_API_URL=http://pms-backend-mac-v2:8082
      - NODE_OPTIONS=--max-old-space-size=8192
      - NEXT_TELEMETRY_DISABLED=1
      - WATCHPACK_POLLING=true
    volumes:
      - ../../frontend:/app
      - /app/node_modules
      - /app/.next
    networks:
      - invion-network
    restart: unless-stopped

networks:
  invion-network:
    driver: bridge
