My current setup is an Ubuntu VM with a docker running the nopCommerce container with 80:80 port binding. I want to install an ssl certificate, preferably with certbot, and get everything working. My questions are:
I found this guide, but it assumes the ssl is already installed and does not mention docker at all so I assume it is for directly installed one: https://www.nop-templates.com/how-to-enable-ssl-for-your-nopcommerce-store.
Also this forum post seems to be relevant: https://www.nopcommerce.com/en/boards/topic/81536/how-to-set-up-ssl-on-the-official-docker-image
If you use kestrel (which has to be in your case) then you can add env parameters and expose 443 after setting it from admin panel.
You can also use self-signed ssl if you're in development enviroment.
EXPOSE 443
ENV ASPNETCORE_Kestrel__Certificates__Default__Password=
ENV ASPNETCORE_Kestrel__Certificates__Default__Path=