I use the docker container https://github.com/jlesage/docker-freefilesync to sync my NAS to my external HDD.
It would be nice if I could get a message when the synchronisation is successful finished, e.g.
via ntfy message.
In Python for example you I use the following code for sending notifications to my selfhosted ntfy-server on my NAS:
Docker isn't officially supported, but the official versions of FFS allow running post-sync commands that can be used for whatever actions you want. You'll have to peruse the settings in Docker yourself unless someone else here has it. Otherwise, you'll have to reach out to the maintainer for such support
I tried it on Windows -> there it works without problems.
Miniconda (Python is installled).
Command: python C:\Users\Beispieluser\Downloads\beispiel.py
On the docker container I tried this this
Command: python /storage/volume1/Installationsdateien/DSM/FreeFileSync_notification.py
There I got the message: /bin/sh: python: not found
So I think I should add python in the docker compose?
(When I connect directly via SSH to the NAS then it works with this command)
I would guess so. The host machine having Python doesn't mean any docker containers are able to use it. That's actually kind of the point of containers, that they are completely sandboxed and standalone.