Files
VideoDetect/aiworker/docker-compose.yml
T
2026-10-28 09:32:41 -04:00

31 lines
825 B
YAML

# VideoDetect — Worker service (standalone compose file)
# Run: docker compose -f aiworker/docker-compose.yml up -d
services:
worker:
build:
context: ./
dockerfile: Dockerfile
container_name: videodetect-aiworker
restart: "no"
environment:
- API_BASE_URL=${API_BASE_URL:-http://10.0.1.34:3000}
- OLLAMA_URL=${OLLAMA_URL:-http://10.0.1.7:11434}
- SECONDS_PER_FRAME=${SECONDS_PER_FRAME:-30}
- TASK_COUNT=${TASK_COUNT:-50}
- SENSITIVITY=${SENSITIVITY:-30}
- IMAGE_COUNT=${IMAGE_COUNT:-10}
- MIN_TIME=${MIN_TIME:-5}
volumes:
- nas_input:/data:ro
- ./run.pl:/app/run.pl:ro
volumes:
nas_input:
driver: local
driver_opts:
type: nfs
o: addr=10.0.0.2,ro,nfsvers=4,hard,intr
device: ":/mnt/Bulk/Homes/ryan/Prawns"