Bind MariaDB to correct IP and open firewall port for Docker

This commit is contained in:
Andreas Zweili 2022-05-31 20:41:21 +02:00
parent 5abf0570e6
commit 636fc55096

View File

@ -3,6 +3,11 @@
services.mysql = { services.mysql = {
enable = true; enable = true;
package = pkgs.mariadb; package = pkgs.mariadb;
bind = "172.18.0.1"; settings = {
mysqld = {
bind-address = "172.17.0.1";
};
};
}; };
networking.firewall.interfaces."docker0".allowedTCPPorts = [ 3306 ];
} }