Problem installing nextcloud. It has not finish installing

Hello everyone.

I hope someone can help or give me advice that will help me.

I install in docker on TrueNas Scale, in the compose file there are 4 containers, nextcloud_db, nextcloud_redis, nextcloud and nextcloud_cron.
3 containers are installed and launched, there is a problem with the main one.
These are the last lines in the logs.

[Tue Mar 04 08:45:58.916302 2025] [php:notice] [pid 141:tid 141] [client 127.0.0.1:39474] {"reqId":"SaFDDBWU1hhfi8dxFwIC","level":3,"time":"2025-03-04T07:45:58+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): Failed to read session data: redis (path: tcp://redis:6379?auth=$2y$05$bKa2bOdIFx4I.vjuIwR9xOvxbhRHS/UGTJiCOXZpDErxk0UHQYXry) at /var/www/html/lib/private/Session/Internal.php#198","userAgent":"curl/7.88.1","version":"31.0.0.18","data":{"app":"PHP"}}
[Tue Mar 04 08:46:00.022334 2025] [php:notice] [pid 134:tid 134] [client 127.0.0.1:51174] {"reqId":"hW5WvlhKgd9yvPq9Sq2h","level":3,"time":"2025-03-04T07:46:00+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/","message":"fopen(/var/www/html/data/nextcloud.log): Failed to open stream: Permission denied at /var/www/html/lib/private/Log/File.php#53","userAgent":"curl/7.88.1","version":"31.0.0.18","data":{"app":"PHP"}}
127.0.0.1 - - [04/Mar/2025:08:44:23 +0100] "GET / HTTP/1.1" 200 5696 "-" "curl/7.88.1"
[Tue Mar 04 08:46:02.912705 2025] [php:notice] [pid 71:tid 71] [client 127.0.0.1:54740] {"reqId":"HX1UF6mrOZLRoKJEuq9G","level":3,"time":"2025-03-04T07:46:02+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): php_network_getaddresses: getaddrinfo for redis failed: Name or service not known at /var/www/html/lib/private/Session/Internal.php#198","userAgent":"curl/7.88.1","version":"31.0.0.18","data":{"app":"PHP"}}
[Tue Mar 04 08:46:02.912774 2025] [php:notice] [pid 71:tid 71] [client 127.0.0.1:54740] {"reqId":"HX1UF6mrOZLRoKJEuq9G","level":3,"time":"2025-03-04T07:46:02+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): Redis connection not available at /var/www/html/lib/private/Session/Internal.php#198","userAgent":"curl/7.88.1","version":"31.0.0.18","data":{"app":"PHP"}}
127.0.0.1 - - [04/Mar/2025:08:44:53 +0100] "GET / HTTP/1.1" 200 6130 "-" "curl/7.88.1"
127.0.0.1 - - [04/Mar/2025:08:45:08 +0100] "GET / HTTP/1.1" 200 6126 "-" "curl/7.88.1"
[Tue Mar 04 08:48:21.016496 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00170: caught SIGWINCH, shutting down gracefully
127.0.0.1 - - [04/Mar/2025:08:46:08 +0100] "GET / HTTP/1.1" 200 5723 "-" "curl/7.88.1"
Configuring Redis as session handler
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.6.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.6.2. Set the 'ServerName' directive globally to suppress this message
[Tue Mar 04 08:48:35.121313 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.3.17 configured -- resuming normal operations
[Tue Mar 04 08:48:35.121350 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
127.0.0.1 - - [04/Mar/2025:08:48:40 +0100] "GET / HTTP/1.1" 200 6132 "-" "curl/7.88.1"
127.0.0.1 - - [04/Mar/2025:08:48:50 +0100] "GET / HTTP/1.1" 200 6126 "-" "curl/7.88.1"

I don’t know if these logs can help to understand, since I don’t know which ones are the logs that are needed.