version: "3.9" services: app: build: context: . dockerfile: Dockerfile ports: - "5173:5173" # Map client port - "8747:8747" # Map server port environment: NODE_ENV: development volumes: - .:/app # Mount the current directory for live changes - /app/node_modules # Ensure node_modules stays in the container command: npm i && npm run install:all && npm run dev:all