services: if-curator: image: ghcr.io/sudolulo/if-curator-headless:latest container_name: if-curator environment: - IMMICH_URL=${IMMICH_URL} - API_KEY=${API_KEY} - AUTO_MODE=true - FRIGATE_URL=${FRIGATE_URL} - TRAINING_MODE=face - STRATEGY=auto - FORCE_CPU=false - ENABLE_CACHE=true - CACHE_DIR=/app/.if_cache - HF_HOME=/models/huggingface - INSIGHTFACE_HOME=/models/insightface # - ONLY_PEOPLE=John,Jane # - SKIP_PEOPLE=Unknown # - MIN_FACE_COUNT=5 # ── Scheduling ── # Cron expression (unset = run once and exit) - CRON_SCHEDULE=0 3 * * 0 # Every Sunday at 3 AM # - CRON_SCHEDULE=0 3 1 * * # 1st of every month at 3 AM # - CRON_SCHEDULE=*/30 * * * * # Every 30 minutes (testing) volumes: - /mnt//if-curator/models:/models - /mnt//if-curator/embeddings:/app/.if_cache - /mnt//if-curator/output:/app/output stdin_open: true tty: true restart: unless-stopped deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu]