# There can only be a single job definition per file. # Create a job with ID and Name 'example' job "unpackerr" { datacenters = ["dc1"] type = "service" constraint { attribute = "${attr.kernel.name}" value = "linux" } constraint { attribute = "${attr.unique.hostname}" operator = "regexp" value = "odroid.*" } // affinity { // attribute = "${attr.unique.hostname}" // value = "odroid2" // value = "odroid2" // weight = 100 // } update { stagger = "10s" max_parallel = 1 } group "unpackerr" { count = 1 restart { attempts = 2 interval = "1m" delay = "10s" mode = "fail" } task "unpackerr" { driver = "docker" config { image = "golift/unpackerr" memory_hard_limit = "2048" force_pull = false dns_servers = ["${attr.unique.network.ip-address}","192.168.4.250","8.8.8.8"] volumes = [ "/mnt/Public/Downloads/news:/downloads", ] } env { TZ = "EST5EDT" #PUID = 1000 #PGID = 1000 #TZ=${TZ} #General config UN_DEBUG="false" #UN_LOG_FILE= #UN_LOG_FILES=10 #UN_LOG_FILE_MB=10 #UN_INTERVAL=2m #UN_START_DELAY=1m #UN_RETRY_DELAY=5m #UN_MAX_RETRIES=3 #UN_PARALLEL=1 #UN_FILE_MODE=0644 #UN_DIR_MODE=0755 #Sonarr Config UN_SONARR_0_URL="http://sonarr.service.dc1.consul:8989" UN_SONARR_0_API_KEY="1632787062fb47a9a6eb4c88e32b3ff3" UN_SONARR_0_PATHS_0="/downloads/qbittorrent/tv-sonarr" UN_SONARR_0_PROTOCOLS="torrent" UN_SONARR_0_TIMEOUT="10s" UN_SONARR_0_DELETE_ORIG="false" UN_SONARR_0_DELETE_DELAY="5m" UN_SONARR_1_URL="http://sonarr-small.service.dc1.consul:8989" UN_SONARR_1_API_KEY="1632787062fb47a9a6eb4c88e32b3ff3" UN_SONARR_1_PATHS_0="/downloads/qbittorrent/tv-sonarrsmall" UN_SONARR_1_PROTOCOLS="torrent" UN_SONARR_1_TIMEOUT="10s" UN_SONARR_1_DELETE_ORIG="false" UN_SONARR_1_DELETE_DELAY="5m" #Radarr Config UN_RADARR_0_URL="http://radarr.service.dc1.consul:7878" UN_RADARR_0_API_KEY="237c27f22504440385e5ee295fd65eb5" UN_RADARR_0_PATHS_0="/downloads/qbittorrent/radarr" UN_RADARR_0_PROTOCOLS="torrent" UN_RADARR_0_TIMEOUT="10s" UN_RADARR_0_DELETE_ORIG="false" UN_RADARR_0_DELETE_DELAY="5m" #Lidarr Config #UN_LIDARR_0_URL=http://lidarr.service.dc1.consul:8686 #UN_LIDARR_0_API_KEY= #UN_LIDARR_0_PATHS_0=/downloads #UN_LIDARR_0_PROTOCOLS=torrent #UN_LIDARR_0_TIMEOUT=10s #UN_LIDARR_0_DELETE_ORIG=false #UN_LIDARR_0_DELETE_DELAY=5m #Readarr Config #UN_READARR_0_URL=http://readarr:8787 #UN_READARR_0_API_KEY= #UN_READARR_0_PATHS_0=/downloads #UN_READARR_0_PROTOCOLS=torrent #UN_READARR_0_TIMEOUT=10s #UN_READARR_0_DELETE_ORIG=false #UN_READARR_0_DELETE_DELAY=5m #Folder Config #UN_FOLDER_0_PATH= #UN_FOLDER_0_EXTRACT_PATH= #UN_FOLDER_0_DELETE_AFTER=10m #UN_FOLDER_0_DELETE_ORIGINAL=false #UN_FOLDER_0_DELETE_FILES=false #UN_FOLDER_0_MOVE_BACK=false #Webhook Config #UN_WEBHOOK_0_URL= #UN_WEBHOOK_0_NAME= #UN_WEBHOOK_0_NICKNAME=Unpackerr #UN_WEBHOOK_0_CHANNEL= #UN_WEBHOOK_0_TIMEOUT=10s #UN_WEBHOOK_0_SILENT=false #UN_WEBHOOK_0_IGNORE_SSL=false #UN_WEBHOOK_0_EXCLUDE_0= #UN_WEBHOOK_0_EVENTS_0=0 #UN_WEBHOOK_0_TEMPLATE_PATH= #UN_WEBHOOK_0_CONTENT_TYPE=application/json #Command Hook Config #UN_CMDHOOK_0_COMMAND= #UN_CMDHOOK_0_NAME= #UN_CMDHOOK_0_TIMEOUT=10s #UN_CMDHOOK_0_SILENT=false #UN_CMDHOOK_0_SHELL=false #UN_CMDHOOK_0_EXCLUDE_0= #UN_CMDHOOK_0_EVENTS_0=0 } resources { cpu = 500 # 500 MHz memory = 256 # 128MB } # Specify configuration related to log rotation logs { max_files = 10 max_file_size = 15 } # Controls the timeout between signalling a task it will be killed # and killing the task. If not set a default is used. kill_timeout = "10s" } #End main task } }