# Docker Compose - LogWhisperer AI Development Environment # Usage: docker compose up -d # Access: http://localhost:5173 services: frontend: build: context: ./frontend dockerfile: Dockerfile.dev container_name: logwhisperer-frontend-dev ports: - "5173:5173" volumes: # Mount source code for Hot Module Replacement (HMR) - ./frontend:/app # Use named volume for node_modules to avoid conflicts with host - node_modules:/app/node_modules environment: - NODE_ENV=development - CHOKIDAR_USEPOLLING=true # Ensure container restarts on failure restart: unless-stopped # Health check to verify the service is running healthcheck: test: ["CMD", "wget", "-q", "--spider", "http://localhost:5173"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: node_modules: driver: local