How do i bind passbolt 80 and 443 port to another port

I currently run passbolt using docker on my host network… sadly httpd also running on the same host… Is there any environment variable to change passbolt port binding ?

p/s: i’m not taking about data source/database port …

edit: how to change passbolt’s nginx port using environment variable ?

@admiralUdon you cannot change the nginx service port by passing environment variables. However if you are using docker compose you can remap the port on your host network by editing the “port” section.

version: '3.4'
services:
  db:
    image: mariadb:10.3
    env_file:
      - env/mysql.env
    volumes:
      - database_volume:/var/lib/mysql
    ports:
      - "127.0.0.1:3306:3306"

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

volumes:
  database_volume:
  gpg_volume:
  images_volume:

you can’t with env variables, but you can change the port in /etc/nginx/sites-enabled/nginx-passbolt.conf