Can't configure custom app

Let me start by saying I’m completely new to TrueNAS. I set one up basically for Time Machine backups and to replace my stand alone Plex server.

I found a cool helper app for Plex that I’d like to use. I’ve tried to use both the GUI and the YAML window and have had zero success, If anyone would be willing to sort out how to get it installed correctly and share the instructions I’d be really greatful.

Even better, if someone wanted to submit it to the apps catalog, I’m sure it would be useful to at least some other folks.

Basically it extends the preroll functionality of Plex server.

You can find more info here: https://github.com/chadwpalm/PrerollPlus

When I attempted the YAML config this is what I got:

version: "3.7"

services:
  prerollplus:
      image: chadwpalm/prerollplus:latest
      container_name: prerollplus
      environment:
        - PUID=3001
        - PGID=3000
        - TZ=America/New_York
  network_mode: "host"
  volumes:
    - /mnt/LCARS/Applications/Preroll_Plus:/config
    - /mnt/LCARS/Plex_Media/preroll:/prerolls
  restart: unless-stopped

And this produced errors:
middlewared.service_exception.CallError: [EFAULT] Failed 'down' action for 'prerollplus' app. Please check /var/log/app_lifecycle.log for more details

Log entry says:
[2025/02/04 06:22:27] (ERROR) app_lifecycle.compose_action():56 - Failed 'down' action for 'prerollplus' app: services.restart must be a mapping

And trying to configure it in the GUI puts the app in the list but it’s status just changes between Running and Stopped a few times and then remains stopped and I don’t know where to look for any log entries, there aren’t any in the same log that the config file produced.

The restart section needs to be nested (and indented) under the prerollplus section.

I think everything does, no?

version: "3.7"

services:
  prerollplus:
      image: chadwpalm/prerollplus:latest
      container_name: prerollplus
      environment:
        - PUID=3001
        - PGID=3000
        - TZ=America/New_York
      network_mode: "host"
      volumes:
        - /mnt/LCARS/Applications/Preroll_Plus:/config
        - /mnt/LCARS/Plex_Media/preroll:/prerolls
      restart: unless-stopped

Yeah, you’re probably right.

Supposedly, this is what everyone wanted–“just give us Compose!”, they cried. Apparently it isn’t quite as easy as they thought.

No no! I’d much rather have had a nice package I could have clicked on to install this.
I like all the nicety of being able to allow the system to set up it’s own volumes and all the nicely exposed details about the program I can see when I choose plex in the list that’s missing from this one.

However, I do appreciate your guys’ help. I did eventually get it running, but I’d still like to see it added to the catalog so updates and whatnot would be easier to deal with and such.

As a matter of fact, how do you check for and install updates when dealing with something installed this way?

For anyone who wants to put the time into it, yes. Much rather be limited by my own shortcomings than to be shackled to iX, community or truecharts for helm/kubernetes.

For the most part, the catalog is done by volunteers. You can request on Scale’s github.

You’ll see updates for the app/image in the App UI, just like the catalog apps.