Cannot connect to php contatiner to mysql: ERROR 2026 (HY000): TLS/SSL error: self-signed certificate in certificate chain

I found a solution, which I can use on my dev server

mysql -hmy_project_mysql --ssl-verify-server-cert=false

Anyway thanks for your help bluepuma77 !