1
services:
  tdarr:
    container_name: tdarr
    image: ghcr.io/haveagitgat/tdarr:3.07.00
    restart: unless-stopped
    security_opt:
      - no-new-privileges=true
    cap_drop:
      - ALL      
    cap_add:
      - CHOWN
      - SETUID
      - SETGID
      - DAC_OVERRIDE
      - FOWNER    
    networks:
      - tdarr-network    
    ports:
      - 8265:8265 # webUI port
      - 8266:8266 # server port
    environment:
      - TZ=Europe/Stockholm
      - PUID=${PUID}
      - PGID=${PGID}
      - UMASK=002
      - serverIP=0.0.0.0
      - serverPort=8266
      - webUIPort=8265
      - internalNode=true
      - inContainer=true
      - ffmpegVersion=7
      - nodeName=MyInternalNode
      - auth=true
      - apiKey=REDACTED # API key for the internal Node
      - openBrowser=true
      - maxLogSizeMB=10
      - cronPluginUpdate=
      - NVIDIA_DRIVER_CAPABILITIES=all
      - NVIDIA_VISIBLE_DEVICES=all
    volumes:
      - /mnt/user/appdata/tdarr/server:/app/server
      - /mnt/user/appdata/tdarr/configs:/app/configs
      - /mnt/user/appdata/tdarr/logs:/app/logs
      - /mnt/user/appdata/tdarr/media:/media
      - /mnt/user/appdata/tdarr/output:/output      
      - tdarr-cache:/temp
    devices:
      - /dev/dri:/dev/dri #for iGPU access 
    logging:
      driver: json-file
      options:
        max-size: "50m"
        max-file: "5"        
    deploy:
      resources:
        limits:
          memory: 2g
          cpus: 3 #Hard limit: Never exceed 3 cores
        reservations:
          memory: 512m # Soft limit: Keep at least 512MB RAM available
          cpus: 2 # Priority: Guaranteed 2048 shares and 2 cores during contention  
    

  tdarr-node:
    container_name: tdarr-node
    image: ghcr.io/haveagitgat/tdarr_node:3.07.00
    restart: unless-stopped
    cap_add:
      - CHOWN
      - SETUID
      - SETGID
      - DAC_OVERRIDE
      - FOWNER       
    security_opt:
      - no-new-privileges=true    
    cap_drop:
      - ALL    
    network_mode: service:tdarr
    environment:
      - TZ=Europe/Stockholm
      - PUID=${PUID}
      - PGID=${PGID}
      - UMASK=002
      - nodeName=MyExternalNode
      - serverURL=http://127.0.0.1:8266
      - inContainer=true
      - ffmpegVersion=7
      - nodeType=mapped
      - priority=-1
      - cronPluginUpdate=
      - apiKey=REDACTED
      - maxLogSizeMB=10
      - pollInterval=2000
      - startPaused=false
      - transcodegpuWorkers=1
      - transcodecpuWorkers=2
      - healthcheckgpuWorkers=1
      - healthcheckcpuWorkers=1
      - NVIDIA_DRIVER_CAPABILITIES=all
      - NVIDIA_VISIBLE_DEVICES=all

    volumes:
      - /mnt/user/appdata/tdarr/configs:/app/configs
      - /mnt/user/appdata/tdarr/logs:/app/logs
      - /mnt/user/appdata/tdarr/media:/media
      - /mnt/user/appdata/tdarr/output:/output      
      - tdarr-cache:/temp      
    devices:
      - /dev/dri:/dev/dri #for iGPU access 
    cpuset: 0-13 #12 performance cores and 2 efficient cores
    logging:
      driver: json-file
      options:
        max-size: "50m"
        max-file: "5"        
    deploy:
      resources:
        limits:
          memory: 26g
        reservations:
          memory: 512m # Soft limit: Keep at least 512MB RAM available
          cpus: 2 # Priority: Guaranteed 2048 shares and 2 cores during contention  



volumes:
  tdarr-cache:
    driver: local
    driver_opts:
      type: tmpfs
      device: tmpfs
      o: size=24g,mode=1777


networks:
  tdarr-network:
    name: tdarr-network
    driver: bridge
    internal: false
    ipam:
      config:
        - subnet: 172.0.4.192/28
          gateway: 172.0.4.193          

For immediate assistance, please email our customer support: [email protected]

Download RAW File