Change port from 80 to 9009 in docker

Ok, I’ve moved to docker compose as recommended. Here are my file when everything works on port 80.
passbolt.env

# URL
APP_FULL_BASE_URL=https://192.168.8.241

# Database settings
DATASOURCES_DEFAULT_HOST=mariadb
DATASOURCES_DEFAULT_USERNAME=myuser
DATASOURCES_DEFAULT_PASSWORD=mypassword
DATASOURCES_DEFAULT_DATABASE=mydb
DATASOURCES_DEFAULT_PORT=3306
DATASOURCES_QUOTE_IDENTIFIER=true

# SMTP
EMAIL_DEFAULT_FROM=my@mail.com
EMAIL_TRANSPORT_DEFAULT_HOST=smtp.domain.es
EMAIL_TRANSPORT_DEFAULT_PORT=587
EMAIL_TRANSPORT_DEFAULT_TLS=true
EMAIL_TRANSPORT_DEFAULT_USERNAME=my@mail.com
EMAIL_TRANSPORT_DEFAULT_PASSWORD=mypass!

# Disable ssl
#PASSBOLT_SSL_FORCE=false

# Registration
# PASSBOLT_REGISTRATION_PUBLIC=true

docker-compose.yml

version: '3.4'
services:
  mariadb:
    image: mariadb
    env_file:
      - env/mysql.env
    volumes:
      - mariadb_passbolt_data:/var/lib/mysql

  passbolt:
    image: passbolt/passbolt:latest
    tty: true
    depends_on:
      - mariadb
    env_file:
      - env/passbolt.env
    volumes:
      - gpg_volume:/var/www/passbolt/config/gpg
      - passbolt_images_volume:/var/www/passbolt/webroot/img/public
    tmpfs:
      - /run
    command: ["/usr/bin/wait-for.sh", "-t", "0", "mariadb:3306", "--", "/docker-entrypoint.sh"]
    ports:
      - 80:80
      - 443:443

volumes:
  mariadb_passbolt_data:
  gpg_volume:
  passbolt_images_volume:

Things that I’ve tried

  1. Change the port of the docker-composer.yml from 80:80 to 9009:80 and set APP_FULL_BASE_URL=https://192.168.8.241:9009 in the passbolt.env file. After starting the dockers, I go to a browser and type 192.168.8.241:9009. I am redirected to https://192.168.8.241:9009/auth/login but I get a “This site can’t provide a secure connection” error.

  2. Change the port of the docker-composer.yml from 80:80 to 9009:80 and set APP_FULL_BASE_URL=http://192.168.8.241:9009 and PASSBOLT_SSL_FORCE=false in the passbolt.env file. When I type 192.168.8.241:9009 in a browser I am redirected to http://192.168.8.241:9009/auth/login and I can recover my account. After recovering my account I can see the login page. However, after typing in my password (triplechecked that it has no errors). I am not logged in, instead, I am redirected again to the login page. And everytime I enter my passwords, I am again redirected and never logged in.

  3. Out of curiosity, I’ve checked the same as in point 2 but without changing the port (i.e leaving 80:80 in the passbolt.env file) and the same login loop happens.

Any idea on how to solve this port change? I don’t care if it is using or not the PASSBOLT_SSL_FORCE=false flag (we can live by using ssl).

Thank you very much.