33 lines
839 B
YAML
33 lines
839 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://videodetect-api:3000}
|
|
- OLLAMA_URL=${OLLAMA_URL:-http://10.0.1.7:11434}
|
|
- SECONDS_PER_FRAME=${SECONDS_PER_FRAME:-30}
|
|
- TASK_COUNT=${TASK_COUNT:-50}
|
|
volumes:
|
|
- nas_input:/data:ro
|
|
- ./run.pl:/app/run.pl:ro
|
|
networks:
|
|
- videodetect_videodetect-network
|
|
|
|
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"
|
|
|
|
networks:
|
|
videodetect_videodetect-network:
|
|
external: true
|