This is from inside the container..
root@02948b216d7b:/var/www/html/Lychee# cat /etc/php/8.2/fpm/php.ini | grep upload_max
upload_max_filesize = 2M
so the mounted nginx file does not overwrite the php parameter..
In portainer i get this log:
2023/05/26 15:55:04 [error] 95#95: *1 FastCGI sent in stderr: "Passing INI directive through FastCGI: unable to set 'upload_max_size'" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "localhost"
2023/05/26 15:55:34 [error] 96#96: *3 FastCGI sent in stderr: "Passing INI directive through FastCGI: unable to set 'upload_max_size'" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "localhost"
2023/05/26 15:56:04 [error] 95#95: *5 FastCGI sent in stderr: "Passing INI directive through FastCGI: unable to set 'upload_max_size'" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "localhost"
2023/05/26 15:56:35 [error] 95#95: *7 FastCGI sent in stderr: "Passing INI directive through FastCGI: unable to set 'upload_max_size'" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "localhost"
2023/05/26 15:57:05 [error] 95#95: *9 FastCGI sent in stderr: "Passing INI directive through FastCGI: unable to set 'upload_max_size'" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "localhost"
Yea you have a syntax error with an extra line, delete the row with