SSL Certificate with docker

Hey guys,
so I have:

  • A Raspberry pi running Libreelec + Kodi
  • Inside this, the docker addon with Nextcloud running on port 3141
  • a working ddnss.de redirect. So I can successfully connect to my Nextcloud via
    https://mydomain.ddnss.de:3141 but I get a SSL warning. Only mildly annoying but in those cases where I want to share something with a friend I have to explain why thatā€™s happening and that they shouldnā€™t worry etc.

Hereā€™s what I havened figured out yet:

  • Is there actually any advantage to using this custom port securitywise? Probably not really, right?
  • How do I install a working SSL certificate for all this?
    (There are tons of How-Tos but usually not for something inside docker)

Thanks for any help!

no.

easy answer: you buy one and use docker run ... -v /local/path/to/cert:/docker/path/to/cert ...

real answer: first we need to know: the docker addon with Nextcloud ā† what is that?