services: backend: build: . ports: - "3000:3000" env_file: .env restart: unless-stopped frontend: image: node:20-alpine working_dir: /app volumes: - ./frontend:/app command: sh -c "npm install && npm run dev -- --host" ports: - "5173:5173" depends_on: - backend restart: unless-stopped