version: "3.4"
services:
  tdarr-node:
    container_name: tdarr-node-local-cpu
    image: ghcr.io/haveagitgat/tdarr_node:latest
    restart: unless-stopped
    environment:
      - TZ=America/Chicago
      - UMASK_SET=002
      - nodeName=local-workstation-cpu
      - serverIP=192.168.1.100  # Replace with your Tdarr server IP
      - serverPort=8266
      - inContainer=true
      - ffmpegVersion=6
    volumes:
      # Media access (same as server)
      - /mnt/media:/media  # Replace with your media path
      # Local transcoding cache
      - ./temp:/temp
    # Resource limits for CPU transcoding
    deploy:
      resources:
        limits:
          cpus: '14'      # Leave some cores for system (16-core = use 14)
          memory: 32G     # Generous for 4K transcoding
        reservations:
          cpus: '8'       # Minimum guaranteed cores
          memory: 16G