502 Bad Gateway Docker ipv4

Modify and comment out the “nginx-passbolt.conf” file:

Modified lines:

 #listen [::]:80;

 fastcgi_pass             10.250.2.89:3000;

modify these lines since I do not have ipv6 on the server

and I can’t enable ipv6 either since the administration is limited

but when I want to enter the front of the application, nginx marks a 502

docker compose:

version: '3.3'
services:
  db:
    image: mariadb:10.3
    restart: unless-stopped
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: "true"
      MYSQL_DATABASE: "passbolt"
      MYSQL_USER: "passbolt"
      MYSQL_PASSWORD: "P4ssb0lt"
    volumes:
      - ./pass/database_volume:/var/lib/mysql

  passbolt:
    image: passbolt/passbolt:latest-ce
    #Alternatively you can use rootless:
    #image: passbolt/passbolt:latest-ce-non-root
    restart: unless-stopped
    depends_on:
      - db
    environment:
      APP_FULL_BASE_URL: http://10.250.2.89/
      DATASOURCES_DEFAULT_HOST: "db"
      DATASOURCES_DEFAULT_USERNAME: "passbolt"
      DATASOURCES_DEFAULT_PASSWORD: "P4ssb0lt"
      DATASOURCES_DEFAULT_DATABASE: "passbolt"
    volumes:
      - ./pass/gpg_volume:/etc/passbolt/gpg
      - ./pass/jwt_volume:/etc/passbolt/jwt
      - ./nginx:/etc/nginx/sites-enabled/
    command: ["/usr/bin/wait-for.sh", "-t", "0", "db:3306", "--", "/docker-entrypoint.sh"]
    ports:
     - 3000:80
     - 443:443
    #Alternatively for non-root images:
    # - 8080:80
    # - 4443:433

volumes:
  database_volume:
  gpg_volume:
  jwt_volume:

Logs error:

passbolt_1  | 10.72.2.181 - - [12/Dec/2022:17:44:50 +0000] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
passbolt_1  | 192.168.160.1 - - [12/Dec/2022:17:44:50 +0000] "\x01\x01\x00\x01\x00\x08\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01\x04\x00\x01\x03\xEC\x04\x00\x0C\x00QUERY_STRING\x0E\x03REQUEST_METHODGET\x0C\x00CONTENT_TYPE\x0E\x00CONTENT_LENGTH\x0B" 400 150 "-" "-"
passbolt_1  | 2022/12/12 17:44:50 [error] 159#159: *1 upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream, client: 10.72.2.181, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://10.250.2.89:3000", host: "10.250.2.89:3000"