# Tdarr Node - Calypso-CPU (DS723+ CPU-only transcoding)
# Runs on Synology DS723+ (calypso at 192.168.0.250)
# Connects to Tdarr Server on Synology (atlantis) at 192.168.0.200
#
# Hardware: AMD Ryzen R1600 (4 cores, no hardware transcoding)
# Use case: CPU-based transcoding to help with queue processing
#
# NFS Mounts required (created via /usr/local/etc/rc.d/tdarr-mounts.sh):
#   /mnt/atlantis_media -> 192.168.0.200:/volume1/data/media
#   /mnt/atlantis_cache -> 192.168.0.200:/volume3/usenet/tdarr_cache
#
# Note: Both /temp and /cache must be mounted to the same cache directory
# to avoid path mismatch errors during file operations.

services:
  tdarr-node:
    image: ghcr.io/haveagitgat/tdarr_node:latest
    container_name: tdarr-node-calypso
    environment:
      - PUID=1029
      - PGID=100
      - TZ=America/Los_Angeles
      - UMASK=022
      - nodeName=Calypso
      - serverIP=192.168.0.200
      - serverPort=8266
      - inContainer=true
      - ffmpegVersion=6
    volumes:
      - /volume1/docker/tdarr-node/configs:/app/configs
      - /volume1/docker/tdarr-node/logs:/app/logs
      - /mnt/atlantis_media:/media
      - /mnt/atlantis_cache:/temp
      - /mnt/atlantis_cache:/cache
    restart: unless-stopped
