containers/fluorite: forward ports
This commit is contained in:
parent
de7402576d
commit
5eef477e0b
1 changed files with 9 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
internalInterfaces = [ "ve-${name}" ];
|
internalInterfaces = [ "ve-${name}" ];
|
||||||
};
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ 50300 ];
|
||||||
|
|
||||||
services.nginx.virtualHosts."${fqdn}" = {
|
services.nginx.virtualHosts."${fqdn}" = {
|
||||||
useACMEHost = "lava.moe";
|
useACMEHost = "lava.moe";
|
||||||
|
|
@ -58,6 +59,14 @@
|
||||||
config = { imports = modules; };
|
config = { imports = modules; };
|
||||||
specialArgs = { inherit fqdn; };
|
specialArgs = { inherit fqdn; };
|
||||||
|
|
||||||
|
forwardPorts = [
|
||||||
|
{
|
||||||
|
containerPort = 50300;
|
||||||
|
hostPort = 50300;
|
||||||
|
protocol = "tcp";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
bindMounts."persist" = {
|
bindMounts."persist" = {
|
||||||
hostPath = "/persist/containers/${name}";
|
hostPath = "/persist/containers/${name}";
|
||||||
mountPoint = "/persist";
|
mountPoint = "/persist";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue