Skip to main content

Environment Variables

Comprehensive reference for all Environment Variables supported by the Vision services. These should be defined in your .env file or Dokploy service configuration.

🎥 Camera Manager

VariableTypeDefaultDescription
DB_CAMERA_HOSTHostnamecontrol-hub-mysqlDatabase host for fetching camera configs.
DB_CAMERA_USERStringrootDatabase user.
DB_CAMERA_PASSWORDString-Database password (SECURE).
PROCESS_FPSInteger5Critical: Target FPS for processing. Higher = More load.
REDIS_HOSTHostnamecontrol-hub-redisRedis message broker address.
PROMETHEUS_PORTPort4000Port for exposing internal metrics.

🧠 Batch Inference

VariableTypeDefaultDescription
MODEL_PATHPath/app/model.ptPath to the YOLO .pt file inside the container.
INFERENCE_DEVICEID0GPU Index (from nvidia-smi). Use cpu to force software mode.
CONFIDENCE_THRESHOLDFloat0.5Sensitivity. Lower = Detect more (but more false positives).
BATCH_WAIT_MSInteger50Tuning: Latency budget for batch accumulation.
MAX_BATCH_SIZEInteger32Max images per pass. Depends on VRAM (4GB = ~8, 24GB = ~64).

⚙️ Redis Worker

VariableTypeDefaultDescription
STRESSED_ALERT_SECONDSFloat30.0Trigger "STRESSED" if agitation remains high for this duration.
BATCH_INTERVAL_SECONDSFloat1.0How often to compile metrics.
AGITATION_THRESHOLDFloat0.4Velocity/Area needed to count as "Movement".