services:
  aida_seg_anything:
    build:
      context: .
      dockerfile: Dockerfile
    working_dir: /app
    volumes:
      - ./:/app
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "10075:8777"
    deploy:
      resources:
        reservations:
          devices:
            # 告诉 Docker 使用所有可用的 NVIDIA GPU
            - driver: nvidia
              device_ids: [ '1' ]
              capabilities: [ gpu ]