faces_server_python_rknpu_o.../docker-compose.yml
2025-12-27 15:36:20 +01:00

27 lines
455 B
YAML

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