Normally the error means that the container or the processes does not have the rootCA’s installed so it cannot find the local issuer certificate
and validate it.
Im pretty sure you have to specify somewhere lua_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
but thats if the container has them installed.
Just verify that it doesnt already exist within the nginx configuration files.