Problem with docker and sftpgo, unable to connect to localhost:2022

I’m trying to set up a project with docker and laravel, but I want to include Sftpgo. It seems to work correctly, because I can access the administration and client panels from localhost:8080, create users, etc., but when I use the service from Laravel and grab any of those files I receive the following error message:
“Unable to connect to host: http://dev.vito.com:2022″
I attach the .yml file, the Laravel .env variables are correct, because when I use sftpgo without docker everything works perfectly.

> services:   app:
>     container_name: appvito
>     user: "root:root"
>     ports:
>       - "80:80"
>     build: './build/app'
>     depends_on:
>       - "db"
>     volumes:
>       - .:/var/www/html
>     networks:
>       - local   db:
>     image: mariadb:10.6
>     container_name: dbvito
>     ports:
>       - "3306:3306"
>     build: './build/db'
>     networks:
>       - local
>     environment:
>       MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "true"
>       MARIADB_ROOT_PASSWORD: ""
>     volumes:
>       - dbData:/var/lib/mysql   sftpgo:
>     image: drakkan/sftpgo:latest
>     user: "root:root"
>     container_name: sftpgo-container
>     ports:
>       - "8080:8080"
>       - "2022:2022"
>     volumes:
>       - sftpgoData:/etc/sftpgo
>     networks:
>       - local volumes:
>     appData:
>     dbData:
>     sftpgoData:
>     networks:
>     local:
>       name: local-network
>       external: true

Thank you