MyNixOS website logo
option

containers.<name>.forwardPorts

List of forwarded ports from host to container. Each forwarded port is specified by protocol, hostPort and containerPort. By default, protocol is tcp and hostPort and containerPort are assumed to be the same if containerPort is not explicitly given.

Declarations
Type
list of (submodule)
Default
[ ]
Example
[
  {
    containerPort = 80;
    hostPort = 8080;
    protocol = "tcp";
  }
]