Tried to install using docker-compose file. it worked but unable to enable https

Below is the Docker-compose file. It opens with http but https not working. when i use http to signup it shows error that browser doesn’t support vault error.

ChatGpt says compose file looks fine for https but it doesn’t work. could someone help me



version: '3'
services:
  bitwarden:
    image: bitwardenrs/server:latest
    restart: always
    ports:
      - "8443:8443"
      - "3012:3012"
    volumes:
      - /sparky/Bitwarden/private-key.pem:/etc/bitwardenrs/sslkey.pem
      - /sparky/Bitwarden/certificate.pem:/etc/bitwardenrs/sslcert.pem
      - /sparky/Bitwarden:/data
    environment:
      - ROCKET_WORKERS=5
      - ROCKET_PORT=8443
      - ROCKET_TLS_KEY_PATH=/etc/bitwardenrs/sslkey.pem
      - ROCKET_TLS_CERT_PATH=/etc/bitwardenrs/sslcert.pem
      - ROCKET_ADDRESS=0.0.0.0