How to run php occ behind company proxy?

Hi,
We set up the nextcloud on docker behind the company proxy.
I also set up proxy info and update ca-certificat.
/etc/systemd/system/docker.service.d/http-proxy.conf:

[Service]
Environment="HTTP_PROXY=http://proxy.company.com:8080"
Environment="HTTPS_PROXY=https://proxy.company.com:8080"
Environment="NO_PROXY=localhost,127.0.0.0/8,docker-registry.company.com"

docker-compose.yaml

...
  environment:
    - HTTP_PROXY=http://proxy.company.com:8080
    - HTTPS_PROXY=https://proxy.company.com:8080
    - NO_PROXY=localhost,127.0.0.0/8,docker-registry.company.com
...

It can install app from the app store.
I installed appapi from the app store, and then I tried to test-deploy but got the following error message.

file_get_contents(https://raw.githubusercontent.com/cloud-py-api/test-deploy/main/appinfo/info.xml): Failed to open stream: Connection timed out at /var/www/html/custom_apps/app_api/lib/Service/ExAppService.php#277

I tried the manual execute command but got the same error cause

php occ app_api:app:register --force-scopes test-deploy docker_socket_proxy --info-xml https://raw.githubusercontent.com/cloud-py-api/test-deploy/main/appinfo/info.xml --test-deploy-mode --no-ansi --no-warnings

If I use no company proxy to set up Nextcloud, it is workable.
How can I solve it?