services:
  warhammer-quest-dev:
    build:
      context: .
      dockerfile: Dockerfile.dev
    ports:
      - "8080:5173" # Puerto de Vite dev server
    volumes:
      - ./src:/app/src
      - ./public:/app/public
      - ./index.html:/app/index.html
      - ./vite.config.js:/app/vite.config.js
      - node_modules:/app/node_modules # Volumen anónimo para node_modules
    environment:
      - NODE_ENV=development
    restart: unless-stopped
    command: npm run dev

volumes:
  node_modules:
