WP Cron and REST API not working on php-fpm

Hi everybody, I have a issue that I can`t solve for days. I use devilbox and its the best thing ever. I use it on wsl 2 and recently, before I tried php-fpm and php version per project all was fine.

What I did. I enabled php-fpm per the github instruction via the docker-compose and add this in backend.cgg - conf:phpfpm:tcp:php82:9000

And all is fine. my wordpress site runs on php82 except 2 things:

WP CRON is failing and the error is:

There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:

cURL error 7: Failed to connect to wordpress.local port 443: Connection refused

and in Site Health I can see this

The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

When testing the REST API, an error was encountered:

REST API Endpoint: https://wordpress.local/wp-json/wp/v2/types/post?context=edit
REST API Response: (http_request_failed) cURL error 7: Failed to connect to wordpress.local port 443: Connection refused

BTW my ssl seams to be working fine and all my sites seams secure.

On other thinig. When I start using php-fpm 8.2 in my case, I have to change my DB_HOST in wp-config to mysql instead of in order the site to work. if not I get error for database connection

BTW if I go to my sites that use the default php7.4 specified in the .env file, all is fine. cron works site works.

If I curl https://wordpress.local from my wsl all is fine, but if I go into the php container it fails to 433 ssl error.

anybbody can help? I 'm trying to make this work for days