Nextcloud with mysql socket

Can NextCloud connect to sql via socket? That way I can use bind-address for docker without binding to 0.0.0.0.

Thanks!

That’s normally done by php itself. There is no problem to connect to mysql through a socket. Some distributions even run mysql via socket by default.

Thank you. I realized that the Nextcloud VM is setup for PHP to use sockets already! So I updated the bind-address and just like that everything is working beautiful and secure. So awesome. I wonder if it would of mattered anyway. I could of had Nextcloud connect to the docker network interface and probably got the same result. That IP wouldn’t be accessible from the network anyway.