Firewall Setting: Docker Container Connect to MariaDB

Working!

Thank you for the push in the right direction.

I found this page here (for anyone with the same problem in the future): How to connect locally hosted MySQL database with the docker container - Stack Overflow

See also: nginx - From inside of a Docker container, how do I connect to the localhost of the machine? - Stack Overflow

So:
– within Webmin went to Servers->MySQL Database->MariaDB Server Configuration set MariaDB server listening address to “any” and restart the server;
– inside Metabase set the server IP to the docker container gateway IP.
– Did NOT have to open port 3306 in the firewall (so I assume it’s not really a firewall problem.)

New Question: what – if any – are the security implications now that the MariaDB server is listening on all IP’s? Because yes, my machine has a public IP.

Thanks again.

1 Like