version: "3.9" services: face-server: container_name: face-server image: python:3.10-slim privileged: true restart: unless-stopped volumes: - ./:/app working_dir: /app command: > bash -c " pip install --no-cache-dir -r requirements.txt && uvicorn app.app:app --host 0.0.0.0 --port 8000 " ports: - "8000:8000" devices: - /dev/rknn0 - /dev/rknn1 - /dev/rknn2