Portainer, Redis, Postgres, Traefik -> insufficient permission on postgres

I have no clue what is wrong - if there is an issue with portainer or maybe something else in your setup. Look at

both are proven to work with native docker compose on many/most Linux systems.

I’m little curios about your ls output

it looks like you ncdata folder holds postgres artefacts? did you somehow merge different volumes into one place?

if yes this could be a reason - all the volumes should be entirely separated… in other words all of the following volume mounts should never point to the same physical location…

/mnt/extern/.. makes me think you are using kind of external drive? try “real” internal storage to avoid permission issues which can arise with external mounts and uncommon file systems

another hint - cron should have same mounts and ENV as NC app - but for the sake of simplicity I would first focus on data persistence and keep cron away.

btw it looks really weird how you mix different volume mount techniques - technically it’s not wrong but myself I would not feel comfortable if I must keep track and e.g. run backups from many different places: