Bind MariaDB to correct IP and open firewall port for Docker
This commit is contained in:
parent
5abf0570e6
commit
636fc55096
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue