Cant compose container [closed]

2025/10/12 18:41:05 [error] 25#25: *5 FastCGI sent in stderr: “PHP message: PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.2.5”. You are running 5.6.40-86+ubuntu22.04.1+deb.sury.org+1. in /var/www/php/vendor/composer/platform_check.php on line 25″ while reading response header from upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “localhost”
[nginx] time=2025-10-12T18:41:05+00:00|status=500|server_name=
|hostn
ame=dev_upi.cb9a1wkrt2pc1kesh8b3dqqfm.local|remote_addr=127.0.0.1|request_method=GET|request=GET / HTTP/1.1|referer=-|request_length=73|request_time=0.001|bytes_sent=464|EOL
Shutdown container

When composing container, this error shows, docker nginx php56 on ubuntu

I except a compose of container, tried Cursor AI, i was migrating docker container sources from php83 to php56