Nextcloud & Docker & Let's encrypt: Only with reverse proxy?

Hello,

I installed nextcloud with docker (adapted from the Base version - apache) which works fine so far. I now want to add support for SSL, and already got a certificate with an auto-update-script for the subdomain I’m using.

I found some examples using let’s encrypt, but they all use a reverse proxy. I just want to ask: Is this really necessary? My idea was to use the http.conf and just add my certificates, but I couldn’t find a way to access the httd.conf-file. I tried to add:

app:
...
    volumes:
    ....
    - ./app/apache:/etc/apache2/

to my composer-file, but the resulting path app/apache/ is just empty.