Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj
published on Thursday, Nov 5, 2026 by dimeskigj
Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj
published on Thursday, Nov 5, 2026 by dimeskigj
A Dokploy application port mapping.
Create Port Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Port(name: string, args: PortArgs, opts?: CustomResourceOptions);@overload
def Port(resource_name: str,
args: PortArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Port(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
published_port: Optional[int] = None,
target_port: Optional[int] = None,
protocol: Optional[PortProtocol] = None,
publish_mode: Optional[PortPublishMode] = None)func NewPort(ctx *Context, name string, args PortArgs, opts ...ResourceOption) (*Port, error)public Port(string name, PortArgs args, CustomResourceOptions? opts = null)type: dokploy:Port
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dokploy_port" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var portResource = new Dokploy.Port("portResource", new()
{
ApplicationId = "string",
PublishedPort = 0,
TargetPort = 0,
Protocol = Dokploy.PortProtocol.Tcp,
PublishMode = Dokploy.PortPublishMode.Ingress,
});
example, err := dokploy.NewPort(ctx, "portResource", &dokploy.PortArgs{
ApplicationId: pulumi.String("string"),
PublishedPort: pulumi.Int(0),
TargetPort: pulumi.Int(0),
Protocol: dokploy.PortProtocolTcp,
PublishMode: dokploy.PortPublishModeIngress,
})
resource "dokploy_port" "portResource" {
lifecycle {
create_before_destroy = true
}
application_id = "string"
published_port = 0
target_port = 0
protocol = "tcp"
publish_mode = "ingress"
}
var portResource = new Port("portResource", PortArgs.builder()
.applicationId("string")
.publishedPort(0)
.targetPort(0)
.protocol(com.dimeskigj.dokploy.enums.PortProtocol.Tcp)
.publishMode(com.dimeskigj.dokploy.enums.PortPublishMode.Ingress)
.build());
port_resource = dokploy.Port("portResource",
application_id="string",
published_port=0,
target_port=0,
protocol=dokploy.PortProtocol.TCP,
publish_mode=dokploy.PortPublishMode.INGRESS)
const portResource = new dokploy.Port("portResource", {
applicationId: "string",
publishedPort: 0,
targetPort: 0,
protocol: dokploy.PortProtocol.Tcp,
publishMode: dokploy.PortPublishMode.Ingress,
});
type: dokploy:Port
properties:
applicationId: string
protocol: tcp
publishMode: ingress
publishedPort: 0
targetPort: 0
Port Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Port resource accepts the following input properties:
- Application
Id string - The Dokploy application ID.
- Published
Port int - The externally published port (1-65535).
- Target
Port int - The application target port (1-65535).
- Protocol
Dimeskigj.
Pulumi. Dokploy. Port Protocol - The port protocol: tcp or udp.
- Publish
Mode Dimeskigj.Pulumi. Dokploy. Port Publish Mode - The port publish mode: ingress or host.
- Application
Id string - The Dokploy application ID.
- Published
Port int - The externally published port (1-65535).
- Target
Port int - The application target port (1-65535).
- Protocol
Port
Protocol - The port protocol: tcp or udp.
- Publish
Mode PortPublish Mode - The port publish mode: ingress or host.
- application_
id string - The Dokploy application ID.
- published_
port number - The externally published port (1-65535).
- target_
port number - The application target port (1-65535).
- protocol "tcp" | "udp"
- The port protocol: tcp or udp.
- publish_
mode "ingress" | "host" - The port publish mode: ingress or host.
- application
Id String - The Dokploy application ID.
- published
Port Integer - The externally published port (1-65535).
- target
Port Integer - The application target port (1-65535).
- protocol
Port
Protocol - The port protocol: tcp or udp.
- publish
Mode PortPublish Mode - The port publish mode: ingress or host.
- application
Id string - The Dokploy application ID.
- published
Port number - The externally published port (1-65535).
- target
Port number - The application target port (1-65535).
- protocol
Port
Protocol - The port protocol: tcp or udp.
- publish
Mode PortPublish Mode - The port publish mode: ingress or host.
- application_
id str - The Dokploy application ID.
- published_
port int - The externally published port (1-65535).
- target_
port int - The application target port (1-65535).
- protocol
Port
Protocol - The port protocol: tcp or udp.
- publish_
mode PortPublish Mode - The port publish mode: ingress or host.
- application
Id String - The Dokploy application ID.
- published
Port Number - The externally published port (1-65535).
- target
Port Number - The application target port (1-65535).
- protocol "tcp" | "udp"
- The port protocol: tcp or udp.
- publish
Mode "ingress" | "host" - The port publish mode: ingress or host.
Outputs
All input properties are implicitly available as output properties. Additionally, the Port resource produces the following output properties:
Supporting Types
PortProtocol, PortProtocolArgs
- Tcp
tcpTCP protocol (tcp).- Udp
udpUDP protocol (udp).
- Port
Protocol Tcp tcpTCP protocol (tcp).- Port
Protocol Udp udpUDP protocol (udp).
- "tcp"
tcpTCP protocol (tcp).- "udp"
udpUDP protocol (udp).
- Tcp
tcpTCP protocol (tcp).- Udp
udpUDP protocol (udp).
- Tcp
tcpTCP protocol (tcp).- Udp
udpUDP protocol (udp).
- TCP
tcpTCP protocol (tcp).- UDP
udpUDP protocol (udp).
- "tcp"
tcpTCP protocol (tcp).- "udp"
udpUDP protocol (udp).
PortPublishMode, PortPublishModeArgs
- Ingress
ingressIngress publish mode (ingress).- Host
hostHost publish mode (host).
- Port
Publish Mode Ingress ingressIngress publish mode (ingress).- Port
Publish Mode Host hostHost publish mode (host).
- "ingress"
ingressIngress publish mode (ingress).- "host"
hostHost publish mode (host).
- Ingress
ingressIngress publish mode (ingress).- Host
hostHost publish mode (host).
- Ingress
ingressIngress publish mode (ingress).- Host
hostHost publish mode (host).
- INGRESS
ingressIngress publish mode (ingress).- HOST
hostHost publish mode (host).
- "ingress"
ingressIngress publish mode (ingress).- "host"
hostHost publish mode (host).
Package Details
- Repository
- dokploy dimeskigj/pulumi-dokploy
- License
- Apache-2.0
Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj
published on Thursday, Nov 5, 2026 by dimeskigj