version: '3.8'

services:
  web-dev:
    build:
      context: .
      dockerfile: Dockerfile.dev
    ports:
      - "5173:5173"
    volumes:
      - .:/app
      - /app/node_modules
      - ./public:/app/public:ro  # Mount public directory as read-only
    environment:
      - NODE_ENV=development
      - VITE_HOST=0.0.0.0
    command: pnpm dev --host 0.0.0.0
