services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: inspection-host-computer
    ports:
      - "5175:5175"          # 映射端口
    environment:
      - NODE_ENV=production
      - VITE_SERVICE_PORT=5175            # 传给 Express 的环境变量
    restart: unless-stopped  # 容器意外停止后自动重启
    # 如果需要挂载日志或配置，可以加 volumes
    # volumes:
    #   - ./logs:/app/logs