Fix port mapping: use internalPort and remove ports list
This commit is contained in:
parent
6094af0f75
commit
bfcc3a15ac
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue