How to HTTPS Nextcloud running in container inside OMV6

Hi all,

I have openmediavault version6 with docker. I followed this process and managed to make it work on http only :frowning:
https://www.wundertech.net/how-to-install-nextcloud-on-openmediavault/
I thin it uses apache underneath

I spent hours to find how to redirect / reverse direct / encrypt somehow to https with self-signed certs.

Can anyone please please guide me?
meanwhile I’m using IPsec tunnel to my router but it’s not what I want for permanent use.

Below what I tried. There was no error but accessing with https not working

version: '2'

services:
  db:
    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /home/pi/nextcloud/db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud:latest
    build: .
    container_name: nextcloud
    restart: always
    ports:
      - 8432:443
    links:
      - db
    volumes:
      - /home/pi/nextcloud/app:/var/www/html
      - "/etc/ssl/mydomain:/etc/ssl/nextcloud"
    environment:
      - MYSQL_PASSWORD=password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db```

Thanks!

Nobody done it with Portainer?