Page 1 of 1

ntfy notification

Posted: 23 Dec 2025, 18:43
by updatefreak
This is my current docker compose with email notification.
Now I want to use my selfhosted ntfy server.
I checked this explanation viewtopic.php?t=13769#notify-via-ntfy but not fully sure how to define it then in the docker compose (FYI: I have also a user and passwort required for my ntfy server).

yml: Select all

services:
  filebot:
    container_name: FileBot
    image: jlesage/filebot
    ports:
      - 5802:5800
    volumes:
      - /volume1/docker/filebot:/config:rw
      - /volume1/docker/jdownloader2/output/ok:/input:rw
      - /volume1/Videos:/output:rw
    environment:
      - USER_ID=1026
      - GROUP_ID=100
      - LANG=de_DE.UTF-8
      - TZ=Europe/Berlin
      - FILEBOT_GUI=0
      - AMC_ACTION=move
      - AMC_CONFLICT=skip
      - AMC_LANG=German
      - AMC_MOVIE_FORMAT=Filme/{~emby}
      - AMC_SERIES_FORMAT=Serien/{~emby}
      - AMC_PROCESS_MUSIC=n
      - AMC_CUSTOM_OPTIONS=--def mail=mail.gmx.net:587:[email protected]:[email protected]:PASSWORT
      - AMC_INPUT_DIR=/input
      - AMC_OUTPUT_DIR=/output
    restart: always

Re: ntfy notification

Posted: 24 Dec 2025, 04:56
by rednoah
:idea: Usage generally looks like this:

Shell: Select all

--apply '{ source, target, metadata -> println "$source | $target | $metadata" }'

Shell: Select all

--apply /path/to/apply.groovy
:idea: As for how to pass these command-line options to the jlesage/filebot docker container, that you might have to figure out yourself with a bit of trial and error.



:idea: At a glance, the AMC_CUSTOM_OPTIONS seem to allow you to pass arbitrary command-line options onto the filebot call that the jlesage/filebot container makes somehow at some point.



:idea: You can pass custom post-processing code inline on the command-line, but you might find multiple layers of escaping (i.e. Groovy code as bash argument value, then escape that as YML value) to be very tricky:

Shell: Select all

--apply '{ source, target, metadata -> println "$source | $target | $metadata" }'


:arrow: You will likely find it easier to save the script code to a file at /volume1/docker/filebot/filebot-apply-ntfy.groovy and then reference that file from inside the container like so:

yml: Select all

environment:
- AMC_CUSTOM_OPTIONS=--apply /config/filebot-apply-ntfy.groovy


:!: Please read Notes on --action MOVE and --action HARDLINK for good measure. Because your current setup likely physically copies files from /input to /output and - contrary to what you might expect - likely does not perform an atomic move / instant move operation.

Re: ntfy notification

Posted: 24 Dec 2025, 07:10
by updatefreak
ok, thanks a lot. I will try