services: lc_agent_server: container_name: LC_Agent_Server build: context: . dockerfile: Dockerfile working_dir: /app environment: GOOGLE_APPLICATION_CREDENTIALS: /google_application_credentials.json DEBUG: 0 volumes: - ./app:/app/app - ./.env:/app/.env - ./data:/data - ./google_application_credentials.json:/google_application_credentials.json - /etc/localtime:/etc/localtime:ro ports: - "${SERVE_PORT}:8000" deploy: resources: reservations: devices: # 告诉 Docker 使用所有可用的 NVIDIA GPU - driver: nvidia device_ids: [ '0' ] capabilities: [ gpu ]