Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
A Dokploy domain routing rule.
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);@overload
def Domain(resource_name: str,
args: DomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
host: Optional[str] = None,
application_id: Optional[str] = None,
certificate_type: Optional[str] = None,
compose_id: Optional[str] = None,
custom_cert_resolver: Optional[str] = None,
enabled: Optional[bool] = None,
https: Optional[bool] = None,
internal_path: Optional[str] = None,
path: Optional[str] = None,
port: Optional[int] = None,
service_name: Optional[str] = None,
strip_path: Optional[bool] = None)func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: dokploy:Domain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dokploy_domain" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DomainArgs
- 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 DomainArgs
- 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 DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- 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 domainResource = new Dokploy.Domain("domainResource", new()
{
Host = "string",
ApplicationId = "string",
CertificateType = "string",
ComposeId = "string",
CustomCertResolver = "string",
Enabled = false,
Https = false,
InternalPath = "string",
Path = "string",
Port = 0,
ServiceName = "string",
StripPath = false,
});
example, err := dokploy.NewDomain(ctx, "domainResource", &dokploy.DomainArgs{
Host: pulumi.String("string"),
ApplicationId: pulumi.String("string"),
CertificateType: pulumi.String("string"),
ComposeId: pulumi.String("string"),
CustomCertResolver: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Https: pulumi.Bool(false),
InternalPath: pulumi.String("string"),
Path: pulumi.String("string"),
Port: pulumi.Int(0),
ServiceName: pulumi.String("string"),
StripPath: pulumi.Bool(false),
})
resource "dokploy_domain" "domainResource" {
pulumi {
replace_on_changes = [application_id, compose_id, service_name]
}
lifecycle {
create_before_destroy = true
}
host = "string"
application_id = "string"
certificate_type = "string"
compose_id = "string"
custom_cert_resolver = "string"
enabled = false
https = false
internal_path = "string"
path = "string"
port = 0
service_name = "string"
strip_path = false
}
var domainResource = new Domain("domainResource", DomainArgs.builder()
.host("string")
.applicationId("string")
.certificateType("string")
.composeId("string")
.customCertResolver("string")
.enabled(false)
.https(false)
.internalPath("string")
.path("string")
.port(0)
.serviceName("string")
.stripPath(false)
.build());
domain_resource = dokploy.Domain("domainResource",
host="string",
application_id="string",
certificate_type="string",
compose_id="string",
custom_cert_resolver="string",
enabled=False,
https=False,
internal_path="string",
path="string",
port=0,
service_name="string",
strip_path=False)
const domainResource = new dokploy.Domain("domainResource", {
host: "string",
applicationId: "string",
certificateType: "string",
composeId: "string",
customCertResolver: "string",
enabled: false,
https: false,
internalPath: "string",
path: "string",
port: 0,
serviceName: "string",
stripPath: false,
});
type: dokploy:Domain
properties:
applicationId: string
certificateType: string
composeId: string
customCertResolver: string
enabled: false
host: string
https: false
internalPath: string
path: string
port: 0
serviceName: string
stripPath: false
Domain 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 Domain resource accepts the following input properties:
- Host string
- The domain hostname.
- Application
Id string - The optional application ID target.
- Certificate
Type string - The certificate resolver type.
- Compose
Id string - The optional Compose ID target.
- Custom
Cert stringResolver - The custom certificate resolver.
- Enabled bool
- Whether the domain is enabled.
- Https bool
- Whether HTTPS is enabled.
- Internal
Path string - The internal URL path.
- Path string
- The public URL path.
- Port int
- The target port.
- Service
Name string - The Compose service name.
- Strip
Path bool - Whether to strip the public path.
- Host string
- The domain hostname.
- Application
Id string - The optional application ID target.
- Certificate
Type string - The certificate resolver type.
- Compose
Id string - The optional Compose ID target.
- Custom
Cert stringResolver - The custom certificate resolver.
- Enabled bool
- Whether the domain is enabled.
- Https bool
- Whether HTTPS is enabled.
- Internal
Path string - The internal URL path.
- Path string
- The public URL path.
- Port int
- The target port.
- Service
Name string - The Compose service name.
- Strip
Path bool - Whether to strip the public path.
- host string
- The domain hostname.
- application_
id string - The optional application ID target.
- certificate_
type string - The certificate resolver type.
- compose_
id string - The optional Compose ID target.
- custom_
cert_ stringresolver - The custom certificate resolver.
- enabled bool
- Whether the domain is enabled.
- https bool
- Whether HTTPS is enabled.
- internal_
path string - The internal URL path.
- path string
- The public URL path.
- port number
- The target port.
- service_
name string - The Compose service name.
- strip_
path bool - Whether to strip the public path.
- host String
- The domain hostname.
- application
Id String - The optional application ID target.
- certificate
Type String - The certificate resolver type.
- compose
Id String - The optional Compose ID target.
- custom
Cert StringResolver - The custom certificate resolver.
- enabled Boolean
- Whether the domain is enabled.
- https Boolean
- Whether HTTPS is enabled.
- internal
Path String - The internal URL path.
- path String
- The public URL path.
- port Integer
- The target port.
- service
Name String - The Compose service name.
- strip
Path Boolean - Whether to strip the public path.
- host string
- The domain hostname.
- application
Id string - The optional application ID target.
- certificate
Type string - The certificate resolver type.
- compose
Id string - The optional Compose ID target.
- custom
Cert stringResolver - The custom certificate resolver.
- enabled boolean
- Whether the domain is enabled.
- https boolean
- Whether HTTPS is enabled.
- internal
Path string - The internal URL path.
- path string
- The public URL path.
- port number
- The target port.
- service
Name string - The Compose service name.
- strip
Path boolean - Whether to strip the public path.
- host str
- The domain hostname.
- application_
id str - The optional application ID target.
- certificate_
type str - The certificate resolver type.
- compose_
id str - The optional Compose ID target.
- custom_
cert_ strresolver - The custom certificate resolver.
- enabled bool
- Whether the domain is enabled.
- https bool
- Whether HTTPS is enabled.
- internal_
path str - The internal URL path.
- path str
- The public URL path.
- port int
- The target port.
- service_
name str - The Compose service name.
- strip_
path bool - Whether to strip the public path.
- host String
- The domain hostname.
- application
Id String - The optional application ID target.
- certificate
Type String - The certificate resolver type.
- compose
Id String - The optional Compose ID target.
- custom
Cert StringResolver - The custom certificate resolver.
- enabled Boolean
- Whether the domain is enabled.
- https Boolean
- Whether HTTPS is enabled.
- internal
Path String - The internal URL path.
- path String
- The public URL path.
- port Number
- The target port.
- service
Name String - The Compose service name.
- strip
Path Boolean - Whether to strip the public path.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
Package Details
- Repository
- dokploy dimeskigj/pulumi-dokploy
- License
- Apache-2.0
Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj