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
1 changed files with 6 additions and 1 deletions

View File

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