Fix port mapping: use internalPort and remove ports list

This commit is contained in:
Joshua Bell 2026-02-02 16:11:35 -06:00
parent 6094af0f75
commit bfcc3a15ac

View file

@ -38,10 +38,6 @@ in
"${name}-db" = {
image = "mariadb:10.3";
ports = [
"${toString port}:${toString internalPort}"
"${toString dbPort}:${toString dbPort}"
];
volumes = [
"${hostDataDir}/database:/var/lib/mysql"
];
@ -87,7 +83,7 @@ in
vpnNamespaces.wg.portMappings = [
{
from = port;
to = port;
to = internalPort;
}
];