Solution
For profiling add this envs in your docker-compose.yml
docker-compose.yml
environment: SPX_ENABLED: 1 SPX_AUTO_START: 0 SPX_REPORT: full
For viewing profiles use some server with php-fpm for example.
php-fpm