Help review docker compose yaml and process

ah I see. Makes sense.
I had to rename the « file » (which was a directory) to peertube.file so I wouldnt get this error:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting « /home/kireek/docker/feditubo/docker-volume/nginx/peertube » to rootfs at « /etc/nginx/conf.d/peertube.template »: mount /home/kireek/docker/feditubo/docker-volume/nginx/peertube:/etc/nginx/conf.d/peertube.template (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

But its there. And unfortunately I still get the same error:

I have tried again with both domain name and wan ip. I have the pem files under both directory for cerbot/conf

image

but:
image

I have found the issue. This is ONLY happening while I access through the reverse proxy, nginx proxy manager. If I go to wan:9000, I can login perfectly.

I assume, I need some « advanced settings » for the proxy host in npm? Unfortunately I cannot find it on the official documentation, or through some googling.
I have found this: Is there an example config for running peertube behind nginx reverse proxy? · Issue #692 · Chocobozzz/PeerTube · GitHub
However, the configuration file mentioned, is the one you told me to put into docker-storage/nginx/peertube.file

So, I can not be, I assume, with my lack of knowledge, the same config I should be putting here:

I am sorry. I know dealing with newbies is patience consuming.

Thanks for all your help.